-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathvariables.tf
104 lines (87 loc) · 3.18 KB
/
variables.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
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
}
variable "cidr_block" {
description = "The CIDR block for the VPC."
type = string
}
variable "availability_zones" {
description = "The availability zones to use for subnets and resources in the VPC. By default, all AZs in the region will be used."
type = list(string)
default = []
}
variable "public_subnet_cidrs" {
description = "A list of CIDR blocks to use for the public subnets."
type = list(string)
default = []
}
variable "private_subnet_cidrs" {
description = "A list of CIDR blocks to use for the private subnets."
type = list(string)
default = []
}
variable "ipv6_public_subnet_netnum_offset" {
description = "By default public IPv6 subnets is allocated from start of VPC IPv6 CIDR block. This can be used to force an offset, i.e. if adding public subnets when private ones already exists (which would be at beginning of block)."
type = number
default = 0
}
variable "ipv6_private_subnet_netnum_offset" {
description = "By default private IPv6 subnet is allocated directly after last public subnet. This can be used to force an offset."
type = number
default = -1
}
variable "map_public_ip_on_launch" {
description = "Specify true to indicate that instances launched into the subnet should be assigned a public IP address. Default is true."
type = bool
default = true
}
variable "create_nat_gateways" {
description = "Optionally create NAT gateways (which cost $) to provide internet connectivity to the private subnets."
type = bool
default = true
}
variable "create_internet_gateway" {
description = "Optionally create an Internet Gateway resource"
type = bool
default = true
}
variable "create_egress_only_internet_gateway" {
description = "Optionally create an Egress Only Internet Gateway resource"
type = bool
default = true
}
variable "enable_dns_hostnames" {
description = "A boolean flag to enable/disable DNS hostnames in the VPC."
type = bool
default = false
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}
variable "s3_endpoint_policy" {
description = "Policy document to attach to S3 Gateway Endpoint. Defaults to blank."
default = null
}
variable "dynamodb_endpoint_policy" {
description = "Policy document to attach to DynamoDb Gateway Endpoint. Defaults to blank."
default = null
}
variable "enable_vpc_endpoints" {
description = "Enable or disable VPC endpoints"
default = true
}
variable "create_individual_public_subnet_route_tables" {
description = "Create a separate route table for each public subnet."
default = false
}
variable "create_public_subnet_default_routes" {
description = "Create public subnet default routes for IPv4 and IPv6, or not for manual configuration."
type = bool
default = true
}