Forrest logo
back to the aws tool

aws-cloudformation:tldr:51da6

aws-cloudformation: List all running stacks.
$ aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE --profile ${profile}
try on your machine

This command is used to list all stacks in AWS CloudFormation that have a status of 'CREATE_COMPLETE'.

Here is a breakdown of the command:

  • aws: This is the AWS Command Line Interface (CLI) command that is used to interact with various AWS services and resources.
  • cloudformation: This is the AWS service name for AWS CloudFormation.
  • list-stacks: This is the specific command within AWS CloudFormation service to list information about stacks.
  • --stack-status-filter CREATE_COMPLETE: This parameter is used to filter the stacks based on their status. In this case, it will only display stacks that have a status of 'CREATE_COMPLETE'. You can replace 'CREATE_COMPLETE' with any other desired stack status for filtering.
  • --profile ${profile}: This parameter is used to specify the AWS CLI profile to be used. AWS CLI profiles allow you to manage different sets of AWS credentials for different environments or purposes. You need to replace ${profile} with the name of the actual AWS CLI profile to be used in the command. If no profile is specified, it will use the default profile.

By running this command, you will get a list of all stacks in AWS CloudFormation that have reached the 'CREATE_COMPLETE' status.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool