Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 560 Bytes

aws-eb-setenv.md

File metadata and controls

11 lines (7 loc) · 560 Bytes

Upload .env environment variables to elastic beanstalk

Now, if you've got a bunch of environment variables set in a .env file, an easy way to set them en-mass is to just dump them all into the eb setenv command like this...

eb setenv `cat .env | sed '/^#/ d' | sed '/^$/ d'`

This will set them all in one shot and save you spending all night on the aws console page. The sed command remove commented lines and new lines.

Explain Shell