Created
January 29, 2021 17:43
-
-
Save rynop/44174add099dd16e0bf29be726f78e18 to your computer and use it in GitHub Desktop.
Command to clone elastic beanstalk environment variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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