-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
149 lines (123 loc) · 5.05 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
variable "code_deploy_auto_rollback_enabled" {
type = bool
description = "Indicates whether a defined automatic rollback configuration is currently enabled for this Deployment Group. If you enable automatic rollback, you must specify at least one event type. Default: true"
default = true
}
variable "code_deploy_auto_rollback_events" {
type = set(string)
description = "The event type or types that trigger a rollback. Supported types are DEPLOYMENT_FAILURE and DEPLOYMENT_STOP_ON_ALARM. Default: [DEPLOYMENT_FAILURE]"
default = ["DEPLOYMENT_FAILURE"]
}
variable "code_deploy_deployment_config_name" {
type = string
description = "The name of the group's deployment config."
}
variable "code_deploy_deployment_ready_option_action_on_timeout" {
type = string
description = "When to reroute traffic from an original environment to a replacement environment in a blue/green deployment. Supported types are CONTINUE_DEPLOYMENT and STOP_DEPLOYMENT."
}
variable "code_deploy_deployment_ready_option_wait_time_in_minutes" {
type = number
description = "The number of minutes to wait before the status of a blue/green deployment changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for action_on_timeout. Default: 20"
default = 20
}
variable "code_deploy_deployment_termination_wait_time_in_minutes" {
type = number
description = "The number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment. Default: 20"
default = 20
}
variable "code_deploy_load_balancer_production_listener_arn" {
type = string
description = "ARN of the load balancer production listener."
}
variable "code_deploy_load_balancer_target_group_names" {
type = set(string)
description = "Names of the blue and green target groups."
}
variable "deployment_maximum_percent" {
type = number
description = "Upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment. Default: 200"
default = 200
}
variable "deployment_minimum_healthy_percent" {
type = number
description = "Lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment. Default: 100"
default = 100
}
variable "desired_count" {
type = number
description = "Number of instances of the task definition to place and keep running. Default: 1"
default = 1
}
variable "ecs_cluster_arn" {
type = string
description = "ARN of an ECS cluster"
}
variable "ecs_cluster_name" {
type = string
description = "The name of the ECS cluster"
}
variable "health_check_grace_period_seconds" {
type = number
description = "Seconds to ignore failing load balancer health checks on newly instantiated tasks to prevent premature shutdown, up to 2147483647. Default: 60"
default = 60
}
variable "iam_policy_statements_task_execution" {
type = set(object({
actions = set(string)
resources = set(string)
}))
description = "Additional policy statements for the task execution role policy."
default = []
}
variable "launch_type" {
type = string
description = "Use FARGATE or EC2. Default: FARGATE"
default = "FARGATE"
}
variable "load_balancer_container_name" {
type = string
description = "Name of the container to associate with the load balancer (as it appears in a container definition)."
}
variable "load_balancer_target_group_arn" {
type = string
description = "ARN of the Load Balancer target group to associate with the service."
}
variable "name" {
type = string
description = "Name of the service"
}
variable "network_assign_public_ip" {
type = bool
description = "Assign a public IP address to the ENI (Fargate launch type only). Valid values are true or false. Default false."
default = false
}
variable "network_subnets" {
type = set(string)
description = "Subnets associated with the task or service."
}
variable "network_vpc_id" {
type = string
description = "The VPC id."
}
variable "platform_version" {
type = string
description = "Platform version on which to run your service. Only applicable for launch_type set to FARGATE. Default: 1.4.0"
default = "1.4.0"
}
variable "source_security_group_id" {
type = string
description = "Security group id to allow access from"
}
variable "task_definition_container_definitions" {
type = string
description = "A list of valid container definitions provided as a single valid JSON document."
}
variable "task_definition_cpu" {
type = number
description = "Number of cpu units used by the task. If the launch_type is FARGATE this field is required."
}
variable "task_definition_memory" {
type = number
description = "Amount (in MiB) of memory used by the task. If the launch_type is FARGATE this field is required."
}