-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.tf
More file actions
105 lines (85 loc) · 2.78 KB
/
interface.tf
File metadata and controls
105 lines (85 loc) · 2.78 KB
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
variable "name" {
description = "Name of the VPC"
type = "string"
}
variable "env" {
description = "Name of the 'environment' that the VPC supports, e.g. dev"
type = "string"
}
variable "owner" {
description = "Organizational entity that 'owns' the VPC and is responsible for its care"
type = "string"
}
variable "region" {
description = "The AWS region in which the VPC will be created."
type = "string"
}
variable "availability_zones" {
description = "A list of availability zones to deploy the VPC across"
type = "list"
}
# Define a CIDR block for the VPC and Availability Zones within the VPC
# https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing
variable "cidr_block" {
description = "The base CIDR block for the VPC; must be a /16"
type = "string"
}
variable "dmz_subnet_cidrs" {
description = "list of cidr blocks for dmz subnets"
type = "list"
}
variable "app_subnet_cidrs" {
description = "list of cidr blocks for app subnets"
type = "list"
}
variable "data_subnet_cidrs" {
description = "list of cidr blocks for data subnets"
type = "list"
}
variable "mgmt_subnet_cidrs" {
description = "list of cidr blocks for management subnets"
type = "list"
}
variable "num_vpn_gateways" {
description = "The number of VPN gateways to provision for the VPC. Set to 1 or more if connecting VPC to a remote datacenter."
default = "0"
type = "string"
}
variable "enable_dns_hostnames" {
description = "Launch instances in the VPC with public DNS hostnames. Details: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-dns.html"
default = "false"
type = "string"
}
variable "enable_dns_support" {
description = "Enable Amazon-managed DNS resolvers in the VPC. Customize via DHCP options. Details: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-dns.html"
default = "true"
type = "string"
}
variable "instance_tenancy" {
description = "Control the tenancy of instances launched in the VPC; default is 'default' for shared hardware. Details: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html"
default = "default"
type = "string"
}
output "vpc.id" {
value = "${aws_vpc.main.id}"
}
output "vpc.cidr_block" {
value = "${aws_vpc.main.cidr_block}"
}
output "nat_eips" {
value = [
"${aws_eip.nat.*.public_ip}",
]
}
output "vpc_endpoint.s3.id" {
value = "${aws_vpc_endpoint.private_s3.id}"
}
output "vpc_endpoint.s3.prefix_list_id" {
value = "${aws_vpc_endpoint.private_s3.prefix_list_id}"
}
output "vpc_endpoint.dynamodb.id" {
value = "${aws_vpc_endpoint.private_dynamodb.id}"
}
output "vpc_endpoint.dynamodb.prefix_list_id" {
value = "${aws_vpc_endpoint.private_dynamodb.prefix_list_id}"
}