Clean display of single most recent event status for each resource in a CloudFormation stack.
Useful for monitoring the progress of a CloudFormation stack create, update, and delete.
Please read the blog post here:
https://alestic.com/2016/11/aws-cloudformation-stack-status/
Monitor all stack resource progress live (Interrupt with Ctrl-C):
aws-cloudformation-stack-status --watch --region $region --stack-name $stack --profile $profile
The --stack-name flag is optional, and multiple stacks can be monitored together:
watch aws-cloudformation-stack-status --watch $webstack $dbstack $dnsstack
One time display of latest status for each stack resource:
aws-cloudformation-stack-status --region $region --stack-name $stack
--stack-name
: Optional.--watch
: Optional. This script will run thewatch
command to check the response from aws-cli every second--region
: Set the aws-cli region. aws-cli will use the default region if set via environment variables or config file.--color
: Optional. Display output with terminal coloring similar to how it is displayed on the AWS Console Stack listing
This script does require that you have already installed and configured the aws-cli.