forked from cloudposse/terraform-aws-dynamic-subnets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
78 lines (65 loc) · 2.46 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
variable "subnet_type_tag_key" {
type = string
default = "cpco.io/subnet/type"
description = "Key for subnet type tag to provide information about the type of subnets, e.g. `cpco.io/subnet/type=private` or `cpco.io/subnet/type=public`"
}
variable "subnet_type_tag_value_format" {
default = "%s"
description = "This is using the format interpolation symbols to allow the value of the subnet_type_tag_key to be modified."
type = string
}
variable "max_subnet_count" {
default = 0
description = "Sets the maximum amount of subnets to deploy. 0 will deploy a subnet for every provided availablility zone (in `availability_zones` variable) within the region"
}
variable "vpc_id" {
type = string
description = "VPC ID where subnets will be created (e.g. `vpc-aceb2723`)"
}
variable "igw_id" {
type = string
description = "Internet Gateway ID the public route table will point to (e.g. `igw-9c26a123`)"
}
variable "cidr_block" {
type = string
description = "Base CIDR block which will be divided into subnet CIDR blocks (e.g. `10.0.0.0/16`)"
}
variable "availability_zones" {
type = list(string)
description = "List of Availability Zones where subnets will be created"
}
variable "vpc_default_route_table_id" {
type = string
default = ""
description = "Default route table for public subnets. If not set, will be created. (e.g. `rtb-f4f0ce12`)"
}
variable "public_network_acl_id" {
type = string
default = ""
description = "Network ACL ID that will be added to public subnets. If empty, a new ACL will be created"
}
variable "private_network_acl_id" {
type = string
description = "Network ACL ID that will be added to private subnets. If empty, a new ACL will be created"
default = ""
}
variable "nat_gateway_enabled" {
type = bool
description = "Flag to enable/disable NAT Gateways to allow servers in the private subnets to access the Internet"
default = true
}
variable "nat_instance_enabled" {
type = bool
description = "Flag to enable/disable NAT Instances to allow servers in the private subnets to access the Internet"
default = false
}
variable "nat_instance_type" {
type = string
description = "NAT Instance type"
default = "t3.micro"
}
variable "map_public_ip_on_launch" {
type = bool
default = true
description = "Instances launched into a public subnet should be assigned a public IP address"
}