Skip to content

Instantly share code, notes, and snippets.

@pen-pal
Created December 4, 2023 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pen-pal/6830f5454a9214a54aa9961a69b28aa5 to your computer and use it in GitHub Desktop.
Save pen-pal/6830f5454a9214a54aa9961a69b28aa5 to your computer and use it in GitHub Desktop.
get parameter from aws with decryption
#this will get parameters list from aws and output it
aws ssm get-parameter --name "{{parameter-name}" --with-decryption --query "Parameter.Value" --output text
#this will get parameters list from aws and output it per name per line
aws ssm describe-parameters --query "Parameters[].Name" --output text| tr -s '[:space:]' '\n' | sed '/^\s*$/d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment