Skip to content

Instantly share code, notes, and snippets.

@rynop
Created January 29, 2021 17:43
Show Gist options
  • Save rynop/44174add099dd16e0bf29be726f78e18 to your computer and use it in GitHub Desktop.
Save rynop/44174add099dd16e0bf29be726f78e18 to your computer and use it in GitHub Desktop.
Command to clone elastic beanstalk environment variables
eb printenv guilded-server-dev | tr '\n' ' ' | sed 's/Environment Variables:/ /g' | sed 's/ */ /g' | sed 's/ = /=/g' > /tmp/envvars.txt
# Make sure /tmp/envvars.txt looks good
# see https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-setenv.html
pbcopy < /tmp/envvars.txt
eb setenv -e eb-env-name<paste>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment