forked from infrablocks/terraform-aws-ecs-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
201 lines (184 loc) · 5.99 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
variable "region" {
description = "The region into which to deploy the cluster."
type = string
}
variable "vpc_id" {
description = "The ID of the VPC into which to deploy the cluster."
type = string
}
variable "subnet_ids" {
description = "The IDs of the subnets for container instances."
type = list(string)
}
variable "component" {
description = "The component this cluster will contain."
type = string
}
variable "deployment_identifier" {
description = "An identifier for this instantiation."
type = string
}
variable "cluster_name" {
description = "The name of the cluster to create."
type = string
default = "default"
}
variable "cluster_instance_type" {
description = "The instance type of the container instances."
type = string
default = "t2.medium"
}
variable "cluster_instance_ssh_public_key_path" {
description = "The path to the public key to use for the container instances."
type = string
default = ""
}
variable "cluster_instance_root_block_device_size" {
description = "The size in GB of the root block device on cluster instances."
type = number
default = 30
}
variable "cluster_instance_root_block_device_type" {
description = "The type of the root block device on cluster instances ('standard', 'gp2', or 'io1')."
type = string
default = "standard"
}
variable "cluster_instance_user_data_template" {
description = "The contents of a template for container instance user data."
type = string
default = ""
}
variable "cluster_instance_amis" {
description = "A map of regions to AMIs for the container instances."
type = map(string)
default = {
af-south-1 = ""
ap-east-1 = ""
ap-northeast-1 = ""
ap-northeast-2 = ""
ap-northeast-3 = ""
ap-south-1 = ""
ap-southeast-1 = ""
ap-southeast-2 = ""
ca-central-1 = ""
cn-north-1 = ""
cn-northwest-1 = ""
eu-central-1 = ""
eu-north-1 = ""
eu-south-1 = ""
eu-west-1 = ""
eu-west-2 = ""
eu-west-3 = ""
me-south-1 = ""
sa-east-1 = ""
us-east-1 = ""
us-east-2 = ""
us-west-1 = ""
us-west-2 = ""
}
}
variable "cluster_instance_iam_policy_contents" {
description = "The contents of the cluster instance IAM policy."
type = string
default = ""
}
variable "cluster_service_iam_policy_contents" {
description = "The contents of the cluster service IAM policy."
type = string
default = ""
}
variable "cluster_minimum_size" {
description = "The minimum size of the ECS cluster."
type = string
default = 1
}
variable "cluster_maximum_size" {
description = "The maximum size of the ECS cluster."
type = string
default = 10
}
variable "cluster_desired_capacity" {
description = "The desired capacity of the ECS cluster."
type = string
default = 3
}
variable "associate_public_ip_addresses" {
description = "Whether or not to associate public IP addresses with ECS container instances (\"yes\" or \"no\")."
type = string
default = "no"
}
variable "security_groups" {
description = "The list of security group IDs to associate with the cluster."
type = list(string)
default = []
}
variable "include_default_ingress_rule" {
description = "Whether or not to include the default ingress rule on the ECS container instances security group (\"yes\" or \"no\")."
type = string
default = "yes"
}
variable "include_default_egress_rule" {
description = "Whether or not to include the default egress rule on the ECS container instances security group (\"yes\" or \"no\")."
type = string
default = "yes"
}
variable "allowed_cidrs" {
description = "The CIDRs allowed access to containers."
type = list(string)
default = ["10.0.0.0/8"]
}
variable "egress_cidrs" {
description = "The CIDRs accessible from containers."
type = list(string)
default = ["0.0.0.0/0"]
}
variable "tags" {
description = "Map of tags to be applied to all resources in cluster"
type = map(string)
default = {}
}
variable "enable_container_insights" {
description = "Whether or not to enable container insights on the ECS cluster (\"yes\" or \"no\")."
type = string
default = "no"
}
variable "protect_cluster_instances_from_scale_in" {
description = "Whether or not to protect cluster instances in the autoscaling group from scale in (\"yes\" or \"no\")."
type = string
default = "no"
}
variable "include_asg_capacity_provider" {
description = "Whether or not to add the created ASG as a capacity provider for the ECS cluster (\"yes\" or \"no\")."
type = string
default = "no"
}
variable "asg_capacity_provider_manage_termination_protection" {
description = "Whether or not to allow ECS to manage termination protection for the ASG capacity provider (\"yes\" or \"no\")."
type = string
default = "yes"
}
variable "asg_capacity_provider_manage_scaling" {
description = "Whether or not to allow ECS to manage scaling for the ASG capacity provider (\"yes\" or \"no\")."
type = string
default = "yes"
}
variable "asg_capacity_provider_minimum_scaling_step_size" {
description = "The minimum scaling step size for ECS managed scaling of the ASG capacity provider."
type = number
default = 1
}
variable "asg_capacity_provider_maximum_scaling_step_size" {
description = "The maximum scaling step size for ECS managed scaling of the ASG capacity provider."
type = number
default = 1000
}
variable "asg_capacity_provider_target_capacity" {
description = "The target capacity, as a percentage from 1 to 100, for the ASG capacity provider."
type = number
default = 100
}
variable "use_fullname" {
description = "Set 'true' to use just cluster_name, else component-deployment_identifier-cluster_name."
type = bool
default = false
}