Created
May 30, 2018 03:09
-
-
Save endofcake/87077b64ecf7c53ea3c38a8153f57610 to your computer and use it in GitHub Desktop.
Ignore desired count to avoid scale ins during infrastructure deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_ecs_service" "web" { | |
# Do not reset desired count if it was changed due to autoscaling | |
lifecycle { | |
ignore_changes = ["desired_count"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment