Skip to content
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 for ECS service to stabilize #9

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

stekern
Copy link

@stekern stekern commented Dec 3, 2020

  • If a task definition is updated, these changes will ensure that Terraform waits until 1) the ECS service has stabilized and 2) the target group is healthy. It uses the AWS CLI to wait for these conditions to be fulfilled, and each of the commands will time out after 10 minutes.
  • An additional variable is added to allow for a customizable task deregistration delay (the default is 300 seconds), in order to speed up deployments.

The first of these checks is built-in to the AWS provider >= 3.13.0 as a parameter wait_for_steady_state in the aws_ecs_service resource, but a local provisioner can be used to support older provider versions. The target group check is not supported by the AWS provider.

Any thoughts on this functionality?

@stekern stekern marked this pull request as draft December 3, 2020 13:52
@nicolaei nicolaei deleted the wait-for-stable-service branch November 8, 2021 08:41
@colincoleman colincoleman force-pushed the master branch 2 times, most recently from 73ce250 to dc462c0 Compare July 7, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants