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

[fix] aws-ecs support not applying tags to services #140

Merged
merged 2 commits into from
Oct 8, 2019

Conversation

mbarrien
Copy link
Contributor

@mbarrien mbarrien commented Oct 6, 2019

Summary

AWS added support for tagging ECS services in a way that is not backwards compatible with ECS services that have been deployed for a long time. Tags can only be added to ECS services that use a new ARN format that embeds a cluster name inside of the ARN, but older ECS service do not have the name embedded.

For some teams, there are many services that are already deployed, and replacing the ECS service just to apply tags will result in user-visible downtime. We provide a flag for users migrating from the CZI internal module to this public cztack module to be able to prevent Terraform from trying to apply tags, in those cases where the user has determined that applying tags is incompatible with the existing resource. It is recommended that at the next possible down time, that the service be replaced by running terraform taint, then restoring the ECS task definition version (since the taint/replace will restore to only the last stub definition). After the service is destroyed/replaced, the tag_service=false flag can be removed.

@mbarrien mbarrien requested a review from a team as a code owner October 6, 2019 05:41
@ryanking
Copy link
Contributor

ryanking commented Oct 7, 2019

@mbarrien can we add the note in the PR description to the README for this module?

@ryanking ryanking changed the title aws-ecs support not applying tags to services [fix] aws-ecs support not applying tags to services Oct 7, 2019
@mbarrien mbarrien force-pushed the mbarrien/omit-ecs-service-tags branch from 2cef773 to ad7d987 Compare October 7, 2019 22:54
@mbarrien
Copy link
Contributor Author

mbarrien commented Oct 7, 2019

Added more refined wording to all the readme files. Please re-review.

@mbarrien mbarrien merged commit 499fed7 into master Oct 8, 2019
@mbarrien mbarrien deleted the mbarrien/omit-ecs-service-tags branch October 8, 2019 14:18
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