-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsubnet-groups.tf
147 lines (125 loc) · 3.18 KB
/
subnet-groups.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
###################################################
# Subnet Groups
###################################################
module "private_subnet_group" {
source = "../../modules/subnet-group"
# source = "tedilabs/network/aws//modules/subnet-group"
# version = "~> 0.2.0"
name = "test-private"
vpc_id = module.vpc.id
subnets = {
"test-private/az2" = {
availability_zone_id = "use1-az2"
ipv4_cidr = "10.0.200.0/24"
}
"test-private/az4" = {
availability_zone_id = "use1-az4"
ipv4_cidr = "10.0.201.0/24"
}
}
## IP Assignments
public_ipv4_address_assignment = {
enabled = false
}
ipv6_address_assignment = {
enabled = false
}
customer_owned_ipv4_address_assignment = {
enabled = false
}
## DNS Configurations
dns_config = {
hostname_type = "RESOURCE_NAME"
dns_resource_name_ipv4_enabled = true
dns_resource_name_ipv6_enabled = false
dns64_enabled = false
}
## Integrations
dax_subnet_group = {
enabled = true
name = "test-dax"
description = "Test DAX Subnet Group"
}
dms_replication_subnet_group = {
enabled = true
name = "test-dms-replication"
description = "Test DMS Replication Subnet Group"
}
docdb_subnet_group = {
enabled = true
name = "test-docdb"
description = "Test DocumentDB Subnet Group"
}
elasticache_subnet_group = {
enabled = true
name = "test-elasticache"
description = "Test ElastiCache Subnet Group"
}
memorydb_subnet_group = {
enabled = true
name = "test-memorydb"
description = "Test MemoryDB Subnet Group"
}
neptune_subnet_group = {
enabled = true
name = "test-neptune"
description = "Test Neptune Subnet Group"
}
rds_subnet_group = {
enabled = true
name = "test-rds"
description = "Test RDS Subnet Group"
}
redshift_subnet_group = {
enabled = true
name = "test-redshift"
description = "Test Redshift Subnet Group"
}
## Sharing
shares = [
# {
# name = "team1"
# principals = ["123456789012"]
# },
]
tags = {
"project" = "terraform-aws-network-examples"
}
}
module "public_subnet_group" {
source = "../../modules/subnet-group"
# source = "tedilabs/network/aws//modules/subnet-group"
# version = "~> 0.2.0"
name = "test-public"
vpc_id = module.vpc.id
subnets = {
"test-public/az2" = {
availability_zone_id = "use1-az2"
ipv4_cidr = "10.0.100.0/24"
}
"test-public/az4" = {
availability_zone_id = "use1-az4"
ipv4_cidr = "10.0.101.0/24"
}
}
## IP Assignments
public_ipv4_address_assignment = {
enabled = true
}
ipv6_address_assignment = {
enabled = false
}
customer_owned_ipv4_address_assignment = {
enabled = false
}
## DNS Configurations
dns_config = {
hostname_type = "RESOURCE_NAME"
dns_resource_name_ipv4_enabled = true
dns_resource_name_ipv6_enabled = false
dns64_enabled = false
}
tags = {
"project" = "terraform-aws-network-examples"
}
}