elastic beanstalk - How do you get access to environment variables via Elasticbeanstalk configuration files (using Docker)? -
For example, if I've been I want to mount a particular volume, which is defined by the environment variable I
I am using the following code:
- - files: "/opt/elasticbeanstalk/hooks/appdeploy/pre/02my_setupksh": owner: root group: root mode: "000 755" content: | #! / Bin / bash set -e /opt/elasticbeanstalk/hooks/common.sh EB_CONFIG_APP_CURRENT = $ (/ opt / elasticbeanstalk / bin / get-config container -k app_deploy_dir) EB_SUPPORT_FILES_DIR = $ (/ opt / elasticbeanstalk / bin / get-config container -k support_files_dir) # load Env vars eval $ ($ EB_SUPPORT_FILES_DIR / gener_env | sed 's / $ /; /')
Comments
Post a Comment