You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/ecs_service.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,13 +23,16 @@ description: |-
23
23
### Read-Only
24
24
25
25
-`capacity_provider_strategy` (List of Object) (see [below for nested schema](#nestedatt--capacity_provider_strategy))
26
+
-`deployment_configuration` (List of Object) (see [below for nested schema](#nestedatt--deployment_configuration))
26
27
-`dns_prfx` (String) The DNS prefix to assign to this service's load balancer.
27
28
-`health_check_grace_period_seconds` (Number)
28
29
-`id` (String) The ID of this resource.
29
30
-`index` (Number) The index of the ecs service.
30
31
-`is_target_group_only` (Boolean)
31
32
-`load_balancer` (List of Object) Zero or more load balancer configurations to associate with this service. (see [below for nested schema](#nestedatt--load_balancer))
32
33
-`old_task_definition_buffer_size` (Number) The number of older task definitions to retain in AWS.
34
+
-`placement_constraint` (List of Object) Rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10` (see [below for nested schema](#nestedatt--placement_constraint))
35
+
-`placement_strategy` (List of Object) Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. The maximum number of `placement_strategy` blocks is `5` (see [below for nested schema](#nestedatt--placement_strategy))
33
36
-`replicas` (Number) The number of container replicas to create.
34
37
-`target_group_arns` (Set of String)
35
38
-`task_definition` (String) The ARN of the task definition to use.
@@ -45,6 +48,28 @@ Read-Only:
45
48
-`weight` (Number)
46
49
47
50
51
+
<aid="nestedatt--deployment_configuration"></a>
52
+
### Nested Schema for `deployment_configuration`
53
+
54
+
Read-Only:
55
+
56
+
-`alarms` (List of Object) (see [below for nested schema](#nestedobjatt--deployment_configuration--alarms))
Copy file name to clipboardExpand all lines: docs/resources/duplo_service_lbconfigs.md
-3Lines changed: 0 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,9 +148,6 @@ Optional:
148
148
-`backend_protocol_version` (String) Is used for communication between the load balancer and the target instances. This field is used to set protocol version for ALB load balancer. Only applicable when protocol is HTTP or HTTPS. The protocol version. Specify GRPC to send requests to targets using gRPC. Specify HTTP2 to send requests to targets using HTTP/2. The default is HTTP1, which sends requests to targets using HTTP/1.1
149
149
-`certificate_arn` (String) The ARN of an ACM certificate to associate with this load balancer. Only applicable for HTTPS.
150
150
-`custom_cidr` (List of String) Specify CIDR Values. This is applicable only for Network Load Balancer if `lb_type` is `6`.
151
-
-`eip_allocations` (List of String) Allocate Elastic IP to load balancer, which is configured under plan configuration.
152
-
153
-
Note: This field can only be set for non internal lbtype NLB(6)
154
151
-`external_port` (Number) The frontend port associated with this load balancer configuration. Required if `lb_type` is not `7`.
155
152
-`external_traffic_policy` (String) Only for K8S Node Port (`lb_type = 4`) or load balancers in Kubernetes. Set the kubernetes service `externalTrafficPolicy` attribute.
156
153
-`extra_selector_label` (Block List) Only for K8S services or load balancers in Kubernetes. Sets an additional selector label to narrow which pods can receive traffic. (see [below for nested schema](#nestedblock--lbconfigs--extra_selector_label))
-`capacity_provider_strategy` (Block List) (see [below for nested schema](#nestedblock--capacity_provider_strategy))
120
+
-`deployment_configuration` (Block List, Max: 1) (see [below for nested schema](#nestedblock--deployment_configuration))
71
121
-`dns_prfx` (String) The DNS prefix to assign to this service's load balancer.
72
122
-`health_check_grace_period_seconds` (Number) Defaults to `0`.
73
123
-`is_target_group_only` (Boolean) Defaults to `false`.
74
124
-`load_balancer` (Block List) Zero or more load balancer configurations to associate with this service. (see [below for nested schema](#nestedblock--load_balancer))
75
125
-`old_task_definition_buffer_size` (Number) The number of older task definitions to retain in AWS. Defaults to `10`.
126
+
-`placement_constraint` (Block List, Max: 10) Rules that are taken into consideration during task placement. Maximum number of `placement_constraints` is `10` (see [below for nested schema](#nestedblock--placement_constraint))
127
+
-`placement_strategy` (Block List, Max: 5) Service level strategy rules that are taken into consideration during task placement. List from top to bottom in order of precedence. The maximum number of `placement_strategy` blocks is `5` (see [below for nested schema](#nestedblock--placement_strategy))
76
128
-`timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
77
129
-`wait_until_targets_ready` (Boolean) Whether or not to wait until all target groups are created for ecs service, after creation. Defaults to `true`.
78
130
@@ -98,6 +150,28 @@ Optional:
98
150
-`weight` (Number) The relative percentage of the total number of launched tasks that should use the specified capacity provider.
99
151
100
152
153
+
<aid="nestedblock--deployment_configuration"></a>
154
+
### Nested Schema for `deployment_configuration`
155
+
156
+
Optional:
157
+
158
+
-`alarms` (Block List) (see [below for nested schema](#nestedblock--deployment_configuration--alarms))
159
+
-`enable_circuit_breaker` (Boolean) Enables ECS deployment circuit breaker to stop deployments on failures. Defaults to `false`.
160
+
-`maximum_percent` (Number) Specifies the maximum percentage of tasks that can run at once during a deployment.
161
+
-`minimum_healthy_percent` (Number) Specifies the minimum percentage of tasks that must remain in the RUNNING state during a deployment
162
+
-`rollback_circuit_breaker` (Boolean) Enables automatic rollback when the circuit breaker detects a failed deployment. Defaults to `false`.
### Nested Schema for `deployment_configuration.alarms`
166
+
167
+
Optional:
168
+
169
+
-`enable` (Boolean) Enables or disables CloudWatch alarm monitoring during deployments. Defaults to `false`.
170
+
-`names` (List of String) Names of CloudWatch alarms that ECS monitors during deployments.
171
+
-`rollback` (Boolean) Automatically rolls back the deployment if any configured CloudWatch alarm enters ALARM state. Defaults to `false`.
172
+
173
+
174
+
101
175
<aid="nestedblock--load_balancer"></a>
102
176
### Nested Schema for `load_balancer`
103
177
@@ -149,6 +223,30 @@ Optional:
149
223
150
224
151
225
226
+
<aid="nestedblock--placement_constraint"></a>
227
+
### Nested Schema for `placement_constraint`
228
+
229
+
Required:
230
+
231
+
-`type` (String) Type of constraint. The only valid values at this time are `memberOf` and `distinctInstance`
232
+
233
+
Optional:
234
+
235
+
-`expression` (String) Cluster Query Language expression to apply to the constraint. Does not need to be specified for the distinctInstance type. For more information, see [Cluster Query Language in the Amazon EC2 Container Service Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html).
236
+
237
+
238
+
<aid="nestedblock--placement_strategy"></a>
239
+
### Nested Schema for `placement_strategy`
240
+
241
+
Required:
242
+
243
+
-`type` (String) Type of placement strategy. Must be one of: `binpack`, `random`, or `spread`
244
+
245
+
Optional:
246
+
247
+
-`field` (String) For the spread placement strategy, valid values are instanceId, or any platform or custom attribute that is applied to a container instance. For the binpack type, valid values are memory and cpu. For the random type, this attribute is not needed. For more information, see [PlacementStrategy](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PlacementStrategy.html)
0 commit comments