aws cli cloudformation list stacks code example
Example: aws cli cloudformation list stacks
# Get list of all CloudFormation Stacks (basic info)
awsProfile="awsProfileName" # Use your aws profile name
awsQuery="Stacks[].{StackId:StackId,StackName:StackName,Description:Description}"
aws --profile "$awsProfile" cloudformation describe-stacks --query "$awsQuery"