Skip to content

Commit 0a4e791

Browse files
committed
updated directory stack
1 parent 0f87776 commit 0a4e791

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

main.tf

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ locals {
2828
for netnum in range(local.azs * 2, local.azs * 3) : cidrsubnet(cidr_block, 8, netnum)
2929
]
3030
] : []
31-
database_subnets = concat(local.database_subnets_native, flatten(local.secondary_database_subnets))
32-
#intra_subnets = var.intra_subnet_enabled ? length(var.intra_subnet_cidrs) > 0 ? var.intra_subnet_cidrs : [for netnum in range(local.azs * 3, local.azs * 4) : cidrsubnet(var.vpc_cidr, 8, netnum)] : []
33-
#public_subnets = var.public_subnet_enabled ? length(var.public_subnet_cidrs) > 0 ? var.public_subnet_cidrs : [for netnum in range(0, local.azs) : cidrsubnet(var.vpc_cidr, 8, netnum)] : []
34-
#private_subnets = var.private_subnet_enabled ? length(var.private_subnet_cidrs) > 0 ? var.private_subnet_cidrs : [for netnum in range(local.azs, local.azs * 2) : cidrsubnet(var.vpc_cidr, 4, netnum)] : []
35-
#database_subnets = var.database_subnet_enabled ? length(var.database_subnet_cidrs) > 0 ? var.database_subnet_cidrs : [for netnum in range(local.azs * 2, local.azs * 3) : cidrsubnet(var.vpc_cidr, 8, netnum)] : []
31+
database_subnets = concat(local.database_subnets_native, flatten(local.secondary_database_subnets))
3632
single_nat_gateway = var.one_nat_gateway_per_az == true ? false : true
3733
create_database_subnet_route_table = var.database_subnet_enabled
3834
create_flow_log_cloudwatch_log_group = var.flow_log_enabled == true ? true : false
@@ -197,7 +193,7 @@ resource "aws_vpc_ipam" "ipam" {
197193
region_name = local.region_name
198194
}
199195

200-
#tags = var.tags
196+
201197
}
202198

203199
# IPv4
@@ -209,7 +205,7 @@ resource "aws_vpc_ipam_pool" "ipam_pool" {
209205
locale = local.region_name
210206
allocation_default_netmask_length = 16
211207

212-
#tags = var.tags
208+
213209
}
214210

215211
resource "aws_vpc_ipam_pool_cidr" "ipam_pool_cidr" {
@@ -237,5 +233,5 @@ resource "aws_vpc_ipam_pool_cidr" "ipam_pool_cidr" {
237233
# publicly_advertisable = false
238234
# aws_service = "ec2"
239235

240-
# #tags = var.tags
236+
#
241237
# }

0 commit comments

Comments
 (0)