-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvpc.tf
58 lines (47 loc) · 1.8 KB
/
vpc.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
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "5.1.2"
name = "vpc-${var.name}"
cidr = "10.1.0.0/16"
# NOTE: modifying azs will force a replacement of quite a few resources
# Make sure to allocate enough time and pick a time slot when no one is using the runners
azs = ["${data.aws_region.default.name}a", "${data.aws_region.default.name}b", "${data.aws_region.default.name}c"]
private_subnets = ["10.1.1.0/24", "10.1.2.0/24", "10.1.3.0/24"]
public_subnets = ["10.1.101.0/24", "10.1.102.0/24", "10.1.103.0/24"]
database_subnets = ["10.1.201.0/24", "10.1.202.0/24", "10.1.203.0/24"]
enable_dns_hostnames = true
enable_nat_gateway = true
map_public_ip_on_launch = true
single_nat_gateway = true
enable_ipv6 = true
public_subnet_assign_ipv6_address_on_creation = true
private_subnet_assign_ipv6_address_on_creation = true
database_subnet_assign_ipv6_address_on_creation = true
public_subnet_enable_dns64 = false
private_subnet_enable_dns64 = false
database_subnet_enable_dns64 = false
public_subnet_enable_resource_name_dns_aaaa_record_on_launch = false
private_subnet_enable_resource_name_dns_aaaa_record_on_launch = false
database_subnet_enable_resource_name_dns_aaaa_record_on_launch = false
public_subnet_ipv6_prefixes = [0, 1, 2]
private_subnet_ipv6_prefixes = [3, 4, 5]
database_subnet_ipv6_prefixes = [6, 7, 8]
default_security_group_ingress = [
{
description = "Allow all"
protocol = -1
self = true
}
]
default_security_group_egress = [
{
description = "Allow all"
protocol = -1
from_port = 0
to_port = 0
cidr_blocks = "0.0.0.0/0"
ipv6_cidr_blocks = "::/0"
}
]
tags = local.tags
}