Created
May 14, 2022 16:36
-
-
Save florianmartens/f7e3b323763d527c783a5485c7abd613 to your computer and use it in GitHub Desktop.
Publish environment variables to shell in elastic beanstalk
This file contains 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
commands: | |
setvars: | |
command: /opt/elasticbeanstalk/bin/get-config environment | jq -r 'to_entries | .[] | "export \(.key)=\"\(.value)\""' > /etc/profile.d/sh.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment