Created
July 26, 2018 08:34
-
-
Save rdkls/2fd6276e143bce0b4e59be60953f01e3 to your computer and use it in GitHub Desktop.
Get my region
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
export REGION=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region` | |
and get an ssm parameter value: | |
export POSTGRES_USER=`aws ssm get-parameter --name=$SSM_PARAMETER_NAME_DB_USERNAME --region=$REGION --with-decryption | jq -r .Parameter.Value` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment