Forrest logo
back to the aws tool

aws-cloudformation:tldr:e9802

aws-cloudformation: List all stacks.
$ aws cloudformation list-stacks --profile ${profile}
try on your machine

The command "aws cloudformation list-stacks" is used to retrieve a list of all CloudFormation stacks in your AWS account.

--profile ${profile} is an optional argument that specifies the AWS profile to use when making the API request. AWS profiles are configurations that store your access keys and other AWS settings, allowing you to easily switch between multiple sets of credentials and settings.

In this command, ${profile} is a placeholder that represents the name of the profile you want to use. You need to replace it with the actual profile name. For example, if you have a profile named "myprofile", the command would be:

aws cloudformation list-stacks --profile myprofile

This command will make an API request to the AWS CloudFormation service using the specified profile, and return a list of all CloudFormation stacks in your AWS account.

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