forked from cloudposse/terraform-aws-dynamic-subnets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
87 lines (71 loc) · 2.24 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
variable "namespace" {
type = "string"
description = "Namespace (e.g. `cp` or `cloudposse`)"
}
variable "stage" {
type = "string"
description = "Stage (e.g. `prod`, `dev`, `staging`)"
}
variable "name" {
type = "string"
description = "Name (e.g. `app`)"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `namespace`, `stage`, `name`, and `attributes`"
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `policy` or `role`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. map(`Cluster`,`XYZ`)"
}
variable "region" {
type = "string"
description = "AWS Region (e.g. `us-east-1`)"
}
variable "max_subnet_count" {
default = 0
description = "Sets the maximum amount of subnets to deploy. 0 will deploy a subnet for every availablility zone 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"
description = "List of Availability Zones where subnets will be created"
}
variable "vpc_default_route_table_id" {
default = ""
description = "Default route table for public subnets. If not set, will be created. (e.g. `rtb-f4f0ce12`)"
}
variable "public_network_acl_id" {
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" {
default = ""
description = "Network ACL ID that will be added to private subnets. If empty, a new ACL will be created"
}
variable "nat_gateway_enabled" {
description = "Flag to enable/disable NAT gateways for private subnets"
default = "true"
}
variable "private_acl_cidr" {
description = "Private subnet ingress cidr"
default = "10.0.0.0/8"
}