Disabled all but one module
This commit is contained in:
parent
262a6343e8
commit
49e10d40e5
118
main.tf
118
main.tf
@ -12,62 +12,62 @@ locals {
|
|||||||
tags = merge(module.label.tags, map("kubernetes.io/cluster/${module.label.id}", "shared"))
|
tags = merge(module.label.tags, map("kubernetes.io/cluster/${module.label.id}", "shared"))
|
||||||
}
|
}
|
||||||
|
|
||||||
module "carnext_poc-day0-deploy" {
|
#module "carnext_poc-day0-deploy" {
|
||||||
#source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/day0-roles.git?ref=tags/0.0.2"
|
# #source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/day0-roles.git?ref=tags/0.0.2"
|
||||||
source = "git@github.com:webuildyourcloud/terraform-aws-day0-roles.git"
|
# source = "git@github.com:webuildyourcloud/terraform-aws-day0-roles.git"
|
||||||
}
|
#}
|
||||||
|
#
|
||||||
module "carnext_poc-asume-role" {
|
#module "carnext_poc-asume-role" {
|
||||||
#source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/asume-role.git?ref=tags/0.0.2"
|
# #source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/asume-role.git?ref=tags/0.0.2"
|
||||||
source = "git@github.com:webuildyourcloud/terraform-aws-assume-role.git"
|
# source = "git@github.com:webuildyourcloud/terraform-aws-assume-role.git"
|
||||||
}
|
#}
|
||||||
|
#
|
||||||
|
#
|
||||||
module "vpc" {
|
#module "vpc" {
|
||||||
#source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/terraform-aws-vpc.git?ref=tags/0.8.1"
|
# #source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/terraform-aws-vpc.git?ref=tags/0.8.1"
|
||||||
source = "git@github.com:cloudposse/terraform-aws-vpc.git?ref=tags/0.8.1"
|
# source = "git@github.com:cloudposse/terraform-aws-vpc.git?ref=tags/0.8.1"
|
||||||
stage = var.stage
|
# stage = var.stage
|
||||||
name = var.name
|
# name = var.name
|
||||||
attributes = var.attributes
|
# attributes = var.attributes
|
||||||
cidr_block = var.vpc_cidr_block
|
# cidr_block = var.vpc_cidr_block
|
||||||
tags = local.tags
|
# tags = local.tags
|
||||||
}
|
#}
|
||||||
|
#
|
||||||
module "flow_logs" {
|
#module "flow_logs" {
|
||||||
#source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/terraform-aws-cloudwatch-flow-logs.git?ref=tags/0.3.3"
|
# #source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/terraform-aws-cloudwatch-flow-logs.git?ref=tags/0.3.3"
|
||||||
source = "git@github.com:webuildyourcloud/terraform-aws-cloudwatch-flow_logs.git"
|
# source = "git@github.com:webuildyourcloud/terraform-aws-cloudwatch-flow_logs.git"
|
||||||
vpc_id = module.vpc.vpc_id
|
# vpc_id = module.vpc.vpc_id
|
||||||
stage = var.stage
|
# stage = var.stage
|
||||||
}
|
#}
|
||||||
|
#
|
||||||
module "subnets" {
|
#module "subnets" {
|
||||||
#source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/terraform-aws-dynamic-subnets.git?ref=tags/0.18.1"
|
# #source = "git::https://terraform:czf1xEsPje-nCsyuyUby@gitlab.carnext.io/infra/terraform/modules/terraform-aws-dynamic-subnets.git?ref=tags/0.18.1"
|
||||||
source = "git@github.com:cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.18.1"
|
# source = "git@github.com:cloudposse/terraform-aws-dynamic-subnets.git?ref=tags/0.18.1"
|
||||||
availability_zones = var.availability_zones
|
# availability_zones = var.availability_zones
|
||||||
stage = var.stage
|
# stage = var.stage
|
||||||
name = var.name
|
# name = var.name
|
||||||
attributes = var.attributes
|
# attributes = var.attributes
|
||||||
vpc_id = module.vpc.vpc_id
|
# vpc_id = module.vpc.vpc_id
|
||||||
igw_id = module.vpc.igw_id
|
# igw_id = module.vpc.igw_id
|
||||||
cidr_block = module.vpc.vpc_cidr_block
|
# cidr_block = module.vpc.vpc_cidr_block
|
||||||
nat_gateway_enabled = true
|
# nat_gateway_enabled = true
|
||||||
nat_instance_enabled = false
|
# nat_instance_enabled = false
|
||||||
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::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