-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Wait until ECS deployment is complete? #3107
Comments
@bitbrain |
I totaly agree with @scream314, As of now CloudFormation has this feature and it is annoying when Infrastructure as Code interferes with your Container Scheduling Engine, in this case ECS. This would make your Terraform deployments in the worst case blocking/deadlocking. As you can't automatically recover from a non working ECS deployment, when it waits for the ECS service to reach a steady state. |
Update: there is actually a https://docs.aws.amazon.com/cli/latest/reference/ecs/wait/services-stable.html |
Is this the same as #10149? |
thanks for the tipp @bitbrain . Works like a charm. |
While we could add the null_resource, it would be nice to mirror (as part of the ecs-service resource) the similar feature that is in the cloudfront distribution resource that will do a wait without the need for a null-resource . See #8116 |
I feel this could be represented/handled via an ECS version of A psudedo resource such as |
I think |
This feature has been merged and will release with |
I neglected to think of this earlier, but will this handle resource timeouts properly? Generally speaking for us at least if the service didn't start in 3m time, something is quite broken.
|
This has been released in version 3.13.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 for triage. Thanks! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Hello,
I have Terraform scripts which setup the following resources:
When I run the script, those resources get provisioned accordingly. However, when I want to update/deploy a service, is there a way to tell Terraform to wait until a health check is okay? (like in Elastic Beanstalk Deployments)
Right now, it will complete the
terraform apply
command, even if the service for some reason is unable to spawn new tasks into the cluster.The text was updated successfully, but these errors were encountered: