{"id":6145,"date":"2019-07-17T18:45:14","date_gmt":"2019-07-17T18:45:14","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6145"},"modified":"2020-03-30T02:39:04","modified_gmt":"2020-03-30T02:39:04","slug":"cloudformation-get-the-current-status-of-a-stack","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/cloudformation-get-the-current-status-of-a-stack\/","title":{"rendered":"Cloudformation &#8211; get the current status of a stack"},"content":{"rendered":"<p>You can get the status of a single stack with &#8220;describe-stacks&#8221;, filtered to one stack by name:<\/p>\n<pre lang=\"bash\">aws cloudformation describe-stacks --stack-name my-stack | jq -rc .Stacks[0].StackStatus\n<\/pre>\n<p>However, this will not show you if the stack is deleted &#8211; in that case you get an error:<\/p>\n<pre>An error occurred (ValidationError) when calling the DescribeStacks operation: Stack with id my-stack does not exist\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Testing stack status with the AWS cli<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4,8],"tags":[71,114],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6145"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6145"}],"version-history":[{"count":1,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6145\/revisions"}],"predecessor-version":[{"id":6452,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6145\/revisions\/6452"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}