Skip to content

Commit 261332b

Browse files
chandrachandra
authored andcommitted
update terratest go
1 parent 022f303 commit 261332b

File tree

3 files changed

+46
-12
lines changed

3 files changed

+46
-12
lines changed

examples/custom-subnets/local.tf

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,59 @@ locals {
33
prefix = "${var.namespace}-${var.environment}"
44

55
subnet_map = {
6-
"${local.prefix}-public" = {
7-
name = "${local.prefix}-public"
8-
cidr_block = "10.0.0.0/18"
6+
"${local.prefix}-public-az1" = {
7+
name = "${local.prefix}-public-az1"
8+
cidr_block = "10.0.0.0/19"
99
availability_zone = "us-east-1a"
10-
nat_gateway_name = "${local.prefix}-ngtw01"
10+
nat_gateway_name = "${local.prefix}-az1-ngtw01"
1111
attach_nat_gateway = false
1212
create_nat_gateway = true
1313
attach_internet_gateway = true
14-
map_public_ip_on_launch = true
1514
},
16-
"${local.prefix}-private" = {
17-
name = "${local.prefix}-private"
18-
cidr_block = "10.0.64.0/18"
15+
"${local.prefix}-public-az2" = {
16+
name = "${local.prefix}-public-az2"
17+
cidr_block = "10.0.32.0/19"
18+
availability_zone = "us-east-1b"
19+
nat_gateway_name = "${local.prefix}-az2-ngtw01"
20+
attach_nat_gateway = false
21+
create_nat_gateway = true
22+
attach_internet_gateway = true
23+
},
24+
"${local.prefix}-db-az1" = {
25+
name = "${local.prefix}-db-az1"
26+
cidr_block = "10.0.64.0/19"
1927
availability_zone = "us-east-1a"
20-
nat_gateway_name = "${local.prefix}-ngtw01"
28+
nat_gateway_name = "${local.prefix}-az1-ngtw01"
29+
attach_nat_gateway = true
30+
create_nat_gateway = false
31+
attach_internet_gateway = false
32+
},
33+
"${local.prefix}-db-az2" = {
34+
name = "${local.prefix}-db-az2"
35+
cidr_block = "10.0.96.0/19"
36+
availability_zone = "us-east-1b"
37+
nat_gateway_name = "${local.prefix}-az2-ngtw01"
38+
attach_nat_gateway = true
39+
create_nat_gateway = false
40+
attach_internet_gateway = false
41+
},
42+
"${local.prefix}-app-az1" = {
43+
name = "${local.prefix}-app-az1"
44+
cidr_block = "10.0.128.0/19"
45+
availability_zone = "us-east-1a"
46+
nat_gateway_name = "${local.prefix}-az1-ngtw01"
47+
attach_nat_gateway = true
48+
create_nat_gateway = false
49+
attach_internet_gateway = false
50+
},
51+
"${local.prefix}-app-az2" = {
52+
name = "${local.prefix}-app-az2"
53+
cidr_block = "10.0.160.0/19"
54+
availability_zone = "us-east-1b"
55+
nat_gateway_name = "${local.prefix}-az2-ngtw01"
2156
attach_nat_gateway = true
2257
create_nat_gateway = false
2358
attach_internet_gateway = false
24-
map_public_ip_on_launch = false
2559
}
2660
}
2761

examples/custom-subnets/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "region" {
1616
variable "namespace" {
1717
type = string
1818
description = "Namespace of the project, i.e. refarch"
19-
default = "arc-terratest"
19+
default = "arc"
2020
}

examples/simple/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ variable "region" {
1616
variable "namespace" {
1717
type = string
1818
description = "Namespace of the project, i.e. refarch"
19-
default = "arc-terratest"
19+
default = "arc"
2020
}

0 commit comments

Comments
 (0)