How do i list information for my aws cloudformation stacks?



  • Display all stacks that have completed successfully.

    $ aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE
    {
        "StackSummaries": [
            {
                "StackId": "arn:aws:cloudformation:eu-west-1:4726333333333:stack/stack1/bf2345c0-2f46-11e8-9ba4-50a683475cd2", 
                "StackName": "stack1", 
                "CreationTime": "2017-07-24T09:43:20.141Z", 
                "StackStatus": "CREATE_COMPLETE"
            }
        ]
    }
    

    You can also use the describe-stacks option, that provides more information than list-stacks

    aws cloudformation describe-stacks --stack-name stack1
    {
        "Stacks": [
            {
                "StackId": "arn:aws:cloudformation:eu-west-1:47263333333333:stack/stack1/bf2345c0-2f46-11e8-9ba4-50a683475cd2", 
                "Tags": [], 
                "EnableTerminationProtection": false, 
                "CreationTime": "2017-07-24T09:43:20.141Z", 
                "StackName": "stack1", 
                "NotificationARNs": [], 
                "StackStatus": "CREATE_COMPLETE", 
                "DisableRollback": false, 
                "RollbackConfiguration": {}
            }
        ]
    }
    

Log in to reply
 

© Lightnetics 2024