-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ECS service parameter wait_for_ready_state can lead to inconsistent new deployments #16012
Comments
Assuming the provider is using |
This is super painful. We have to choose between:
Are there any workaround we can use for now, until this is fixed? |
If it fits your app's architecture, you can look into lowering deregistration_delay, which defaults to 5 minutes and may eat up half of this hardcoded 10 minute wait time. |
We intended to replace wait_for_steady_state to be replaced with a custom shell script in commit 6a4fac2. We found the shell script was buggy and difficult to maintain across local (macOS) and CI/CD (ubuntu) environments. Instead, we'll replace wait_for_steady_state. If flakiness continues to be an issue, we'll investigate reducing the deregistration_delay on the ALB to allow services to reach a steady state more quickly, as suggested here hashicorp/terraform-provider-aws#16012 (comment) Co-authored-by: Olly Swanson <olly.swanson95@gmail.com>
Hi @maximelenair , some changes to handling of Relates #24223 |
This functionality has been released in v4.22.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform core version: 0.13.3
Terraform AWS provider version: 3.13.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
When using the
wait_for_steady_state
parameter during the creation of a service, we have multiple service / task status possible:terraform apply
is successfulterraform apply
fails after a timeout (ie, the specific Docker image does not exist)terraform apply
fails after a timeout (ie, a container fails to start because of a missing environment variable)Actual Behavior
In both case 1. and 2., the actual behaviour follows the expected behavior.
For case 3., the actual behavior is inconsistent given the same Terraform configuration.
Example on 5 different tests (deploy/destroy without any configuration change):
Steps to Reproduce
wait_for_steady_state
parameterReferences
The text was updated successfully, but these errors were encountered: