Skip to content

Instantly share code, notes, and snippets.

GET and Export all environment variables from elastic beanstalk

Bash Script

declare values="$(/opt/elasticbeanstalk/bin/get-config environment)"
for s in $(echo $values | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" ); do
    export $s
done