Skip to content

Instantly share code, notes, and snippets.

@tfentonz
Created July 23, 2021 01:40
Show Gist options
  • Save tfentonz/1255a06fd3c42a90ca152f0a7c2a1ce1 to your computer and use it in GitHub Desktop.
Save tfentonz/1255a06fd3c42a90ca152f0a7c2a1ce1 to your computer and use it in GitHub Desktop.
AWS CLI CloudFormation stack parameters
aws cloudformation describe-stacks \
--stack-name <STACK_NAME> \
--query 'Stacks[].Parameters[].{Key:ParameterKey,Value:ParameterValue}' \
--output table
@tfentonz
Copy link
Author

Output example:

--------------------------------------------------------
|                    DescribeStacks                    |
+-------------------+----------------------------------+
|        Key        |               Value              |
+-------------------+----------------------------------+
|  SecurityGroup    |  sg-01a23bc4d5efg678h            |
|  Customer         |  Knight Industries Two Thousand  |
|  InstanceType     |  t2.micro                        |
|  EnvironmentName  |  prod                            |
+-------------------+----------------------------------+

@nlundbo
Copy link

nlundbo commented Apr 11, 2024

Thank you, saved me a few minutes :)

@tfentonz
Copy link
Author

@nlundbo glad it helped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment