Skip to content

Instantly share code, notes, and snippets.

@kharandziuk
Created July 28, 2022 16:15
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 kharandziuk/4d0c8d8ed404d040b534dcee074b0e91 to your computer and use it in GitHub Desktop.
Save kharandziuk/4d0c8d8ed404d040b534dcee074b0e91 to your computer and use it in GitHub Desktop.
AWS Parameter Store parameters as env
#!/bin/sh
prefix=$1
aws ssm get-parameters-by-path --path "$prefix" | jq -r -c '.Parameters[] | "\(.Name )=\"\(.Value)\""' | cut -c$((${#prefix}+1))-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment