Skip to content

Instantly share code, notes, and snippets.

@aldenw
Last active March 27, 2019 19:12
Show Gist options
  • Save aldenw/d13ecfee0df154f4c7dc1ab8cbf79799 to your computer and use it in GitHub Desktop.
Save aldenw/d13ecfee0df154f4c7dc1ab8cbf79799 to your computer and use it in GitHub Desktop.
Ssm to Env export for supervisor
aws ssm get-parameters-by-path --cli-input-json "{\"Path\": \"$SSM_PATH\", \"Recursive\": true}" --query 'Parameters[*].{Joined:join(`=`,[Name,Value])}' --output text | sed 's:[^=]*/::'
@aldenw
Copy link
Author

aldenw commented Mar 27, 2019

Converts Ssm parameters into a style

FOO=fooval
BAR=barval

to be exported to environment.

Set or replace $SSM_PATH variable.

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