Skip to content

Instantly share code, notes, and snippets.

@waxim
Created June 14, 2018 13:29
Show Gist options
  • Save waxim/691d4ced91a33bd2f23814f0ff148b13 to your computer and use it in GitHub Desktop.
Save waxim/691d4ced91a33bd2f23814f0ff148b13 to your computer and use it in GitHub Desktop.
Take a .env file and sets the elasticbeanstalk environment variables for the attached app. $ ./env2en.sh aws.env
command=""
while IFS='' read -r line || [[ -n "$line" ]]; do
command="$command $line"
echo "Set $line"
done < "$1"
eb setenv $command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment