Created
July 28, 2022 16:15
-
-
Save kharandziuk/4d0c8d8ed404d040b534dcee074b0e91 to your computer and use it in GitHub Desktop.
AWS Parameter Store parameters as env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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