This cookbook only works on AWS OpsWorks.
Dump environment variables which set in Apps for shell-init.
Add opsworks-export-envs::default
to Deploy event.
All environment variables are dumped to /home/deploy/shellinit-${app_name}.sh
at deployment.
You can use it by dot command or source.
. /home/deploy/shellinit-${app_name}.sh
or
source /home/deploy/shellinit-${app_name}.sh
source "https://supermarket.chef.io"
cookbook 'opsworks-export-envs', git: 'https://github.com/OpsRockin/opsworks-export-envs.git'
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
MIT