Skip to content

Instantly share code, notes, and snippets.

@endofcake
Created May 11, 2018 00:41
Show Gist options
  • Save endofcake/38ffbf95ee08dfd9c9b2f5a45cb6715d to your computer and use it in GitHub Desktop.
Save endofcake/38ffbf95ee08dfd9c9b2f5a45cb6715d to your computer and use it in GitHub Desktop.
ECS task placement constraints that prevent ECS scheduler from putting a new task on an instance about to be drained
placement_constraints {
type = "memberOf"
expression = "attribute:drain !exists or attribute:drain != true"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment