Skip to content

Instantly share code, notes, and snippets.

@ctgardner
Last active March 22, 2019 03:28
Show Gist options
  • Save ctgardner/caad625e4e27926959ed27945ee4f34c to your computer and use it in GitHub Desktop.
Save ctgardner/caad625e4e27926959ed27945ee4f34c to your computer and use it in GitHub Desktop.
Filter CloudFormation stack-events by status
aws cloudformation describe-stack-events --stack-name my-stack --query "StackEvents[?ResourceStatus == 'CREATE_FAILED']"
# Resource statuses (2019-03-19):
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html
# CREATE_COMPLETE
# CREATE_FAILED
# CREATE_IN_PROGRESS
# DELETE_COMPLETE
# DELETE_FAILED
# DELETE_IN_PROGRESS
# REVIEW_IN_PROGRESS
# ROLLBACK_COMPLETE
# ROLLBACK_FAILED
# ROLLBACK_IN_PROGRESS
# UPDATE_COMPLETE
# UPDATE_COMPLETE_CLEANUP_IN_PROGRESS
# UPDATE_IN_PROGRESS
# UPDATE_ROLLBACK_COMPLETE
# UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS
# UPDATE_ROLLBACK_FAILED
# UPDATE_ROLLBACK_IN_PROGRESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment