Skip to content

Instantly share code, notes, and snippets.

@florianmartens
Created May 14, 2022 16:36
Show Gist options
  • Save florianmartens/f7e3b323763d527c783a5485c7abd613 to your computer and use it in GitHub Desktop.
Save florianmartens/f7e3b323763d527c783a5485c7abd613 to your computer and use it in GitHub Desktop.
Publish environment variables to shell in elastic beanstalk
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