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
issues #59 Add an option for enabling deployment_circuit_breaker (#61)
* add an option for enabling deployment_circuit_breaker
* update readme
* define a block of type deployment_circuit_breaker
* Update main.tf
Co-authored-by: Julian Nonino <jnonino@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ In order to run all checks at any point run the following command:
91
91
| <aname="input_deployment_controller"></a> [deployment\_controller](#input\_deployment\_controller)| (Optional) Deployment controller |`list(string)`|`[]`| no |
92
92
| <aname="input_deployment_maximum_percent"></a> [deployment\_maximum\_percent](#input\_deployment\_maximum\_percent)| (Optional) The 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. |`number`|`200`| no |
93
93
| <aname="input_deployment_minimum_healthy_percent"></a> [deployment\_minimum\_healthy\_percent](#input\_deployment\_minimum\_healthy\_percent)| (Optional) The 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. |`number`|`100`| no |
94
+
| <aname="input_deployment_circuit_breaker"></a> [deployment\_circuit\_breaker](#input\_deployment\_circuit\_breaker)| (Optional) You can enable the deployment circuit breaker to cause a service deployment to transition to a failed state if tasks are persistently failing to reach RUNNING state or are failing healthcheck. The optional rollback option causes Amazon ECS to roll back to the last completed deployment upon a deployment failure. | <pre>list(object({<br> enabled = bool<br> rollback = bool<br> }))</pre> |`[]`| no |
94
95
| <aname="input_desired_count"></a> [desired\_count](#input\_desired\_count)| (Optional) The number of instances of the task definition to place and keep running. Defaults to 0. |`number`|`1`| no |
95
96
| <aname="input_ecs_cluster_arn"></a> [ecs\_cluster\_arn](#input\_ecs\_cluster\_arn)| ARN of an ECS cluster |`any`| n/a | yes |
96
97
| <aname="input_ecs_cluster_name"></a> [ecs\_cluster\_name](#input\_ecs\_cluster\_name)| (Optional) Name of the ECS cluster. Required only if autoscaling is enabled |`string`|`null`| no |
description="(Optional) You can enable the deployment circuit breaker to cause a service deployment to transition to a failed state if tasks are persistently failing to reach RUNNING state or are failing healthcheck."
36
+
type=bool
37
+
default=false
38
+
}
39
+
40
+
variable"deployment_circuit_breaker_rollback" {
41
+
description="(Optional) The optional rollback option causes Amazon ECS to roll back to the last completed deployment upon a deployment failure."
42
+
type=bool
43
+
default=false
44
+
}
45
+
34
46
variable"desired_count" {
35
47
description="(Optional) The number of instances of the task definition to place and keep running. Defaults to 0."
0 commit comments