Skip to content

Instantly share code, notes, and snippets.

@cn007b
Last active April 10, 2019 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cn007b/d141f81834819cca242ac1c581eed2c7 to your computer and use it in GitHub Desktop.
Save cn007b/d141f81834819cca242ac1c581eed2c7 to your computer and use it in GitHub Desktop.
Deploy AWS Fargate Service - deploy
delete_old_versions:
aws ecs list-task-definitions --sort=DESC \
| grep -Eo $(YourSrvc)':[0-9]+' \
| tail -n +2 \
| while read v; do aws ecs deregister-task-definition --task-definition=$$v; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment