Enabled Bastion module
This commit is contained in:
parent
ef5335f520
commit
f72e8d674b
31
main.tf
31
main.tf
@ -52,19 +52,18 @@ module "subnets" {
|
|||||||
tags = local.tags
|
tags = local.tags
|
||||||
}
|
}
|
||||||
|
|
||||||
#module "bastion" {
|
module "bastion" {
|
||||||
# #source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/bastion.git"
|
source = "git@github.com:webuildyourcloud/terraform-aws-bastion.git"
|
||||||
# source = "git@github.com:webuildyourcloud/terraform-aws-bastion.git"
|
enable_bastion = true
|
||||||
# enable_bastion = true
|
environment = var.stage
|
||||||
# environment = var.stage
|
project = var.prefix
|
||||||
# project = var.prefix
|
aws_region = var.region
|
||||||
# aws_region = var.region
|
key_name = var.keyname
|
||||||
# key_name = var.keyname
|
instance_type = var.bastion_instance_type
|
||||||
# instance_type = var.bastion_instance_type
|
subnet_id = element(module.subnets.public_subnet_ids, 0)
|
||||||
# subnet_id = element(module.subnets.public_subnet_ids, 0)
|
vpc_id = module.vpc.vpc_id
|
||||||
# vpc_id = module.vpc.vpc_id
|
|
||||||
#
|
tags = {
|
||||||
# tags = {
|
Name = "${var.prefix}-${var.stage}-bastion"
|
||||||
# Name = "${var.prefix}-${var.stage}-bastion"
|
}
|
||||||
# }
|
}
|
||||||
#}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user