![Forrest logo](/images/logo.png)
aws-cloudformation:tldr:e9802
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.