BUG | Support Dynamic deployment_circuit_breaker for CODE_DEPLOY @lgants (#165)
what
- The
deployment_circuit_breaker
option is now a dynamic block with a conditional for thedeployment_controller_type
value
why
- This PR fixes an issue when using
CODE_DEPLOY
deployment_circuit_breaker
option. - Previously, the
deployment_circuit_breaker
was always included as part of the module. However, the AWS DeploymentCircuitBreaker documentation states":
The deployment circuit breaker can only be used for services using the rolling update (ECS) deployment type that aren't behind a Classic Load Balancer.
Consequently, when using CODE_DEPLOY
for deployment_circuit_breaker
with this module, the state is consistently out of sync with the remote, which attempts to sync with the remote on every update.
references
- AWS DeploymentCircuitBreaker documentation: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeploymentCircuitBreaker.html