Difference between revisions of "Aws cloudformation describe-stack-events"
Jump to navigation
Jump to search
(5 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
[[aws cloudformation]] describe-stack-events --stack-name your_stack_name | [[aws cloudformation]] describe-stack-events --stack-name your_stack_name | ||
− | aws cloudformation describe-stack-events --stack-name your_stack_name | grep ResourceStatusReason | + | aws cloudformation describe-stack-events --stack-name your_stack_name | grep [[ResourceStatusReason]] |
aws cloudformation describe-stack-events --stack-name your_stack_name | grep [[CREATE_FAILED]] | aws cloudformation describe-stack-events --stack-name your_stack_name | grep [[CREATE_FAILED]] | ||
Line 11: | Line 11: | ||
for STACK_NAME in `aws cloudformation list-stacks | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done | grep [[Timestamp]] | for STACK_NAME in `aws cloudformation list-stacks | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done | grep [[Timestamp]] | ||
− | + | == Describe-stack-events without [[DELETE_COMPLETE]] status == | |
− | for STACK_NAME in `[[aws cloudformation list-stacks]] | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done | + | for STACK_NAME in `[[aws cloudformation list-stacks]] --stack-status-filter CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED UPDATE_IN_PROGRESS UPDATE_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_COMPLETE UPDATE_FAILED UPDATE_ROLLBACK_IN_PROGRESS UPDATE_ROLLBACK_FAILED UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_ROLLBACK_COMPLETE REVIEW_IN_PROGRESS IMPORT_IN_PROGRESS IMPORT_COMPLETE IMPORT_ROLLBACK_IN_PROGRESS IMPORT_ROLLBACK_FAILED IMPORT_ROLLBACK_COMPLETE | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done | grep Timestamp |
== Related == | == Related == |
Latest revision as of 08:51, 9 May 2022
https://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-stack-events.html
aws cloudformation describe-stack-events --stack-name your_stack_name aws cloudformation describe-stack-events --stack-name your_stack_name | grep ResourceStatusReason aws cloudformation describe-stack-events --stack-name your_stack_name | grep CREATE_FAILED
for STACK_NAME in `aws cloudformation list-stacks | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done
for STACK_NAME in `aws cloudformation list-stacks | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done | grep Timestamp
Describe-stack-events without DELETE_COMPLETE status[edit]
for STACK_NAME in `aws cloudformation list-stacks --stack-status-filter CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED UPDATE_IN_PROGRESS UPDATE_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_COMPLETE UPDATE_FAILED UPDATE_ROLLBACK_IN_PROGRESS UPDATE_ROLLBACK_FAILED UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_ROLLBACK_COMPLETE REVIEW_IN_PROGRESS IMPORT_IN_PROGRESS IMPORT_COMPLETE IMPORT_ROLLBACK_IN_PROGRESS IMPORT_ROLLBACK_FAILED IMPORT_ROLLBACK_COMPLETE | grep StackName | cut -d'"' -f4 | sort | uniq`; do aws cloudformation describe-stack-events --stack-name $STACK_NAME ; done | grep Timestamp
Related[edit]
aws cloudformation list-stacks | grep StackName
aws cloudformation deploy
CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED DELETE_COMPLETE UPDATE_IN_PROGRESS UPDATE_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_COMPLETE UPDATE_FAILED UPDATE_ROLLBACK_IN_PROGRESS UPDATE_ROLLBACK_FAILED UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_ROLLBACK_COMPLETE REVIEW_IN_PROGRESS IMPORT_IN_PROGRESS IMPORT_COMPLETE IMPORT_ROLLBACK_IN_PROGRESS IMPORT_ROLLBACK_FAILED IMPORT_ROLLBACK_COMPLETE
See also[edit]
Advertising: