Skip to content

Instantly share code, notes, and snippets.

@roylee0704
Last active September 2, 2016 10:37
Show Gist options
  • Save roylee0704/8b11a5069a3e0f57fd0afa6eba1b450b to your computer and use it in GitHub Desktop.
Save roylee0704/8b11a5069a3e0f57fd0afa6eba1b450b to your computer and use it in GitHub Desktop.
AWS Elastic Beanstalk.
# install CLI for eb (aka. elastic-beanstalk)
$ brew install awsebcli
# cd to your project directory, which contains Dockerfile. And initialize eb
$ eb init
# followed by a prompt to enter credentials.
aws-id: # your user-id
aws-key: # your user-secret.
# [BEFORE] DEPLOY TO AWS: Let's test it on your local actually deploys to aws.
# It will deploys to your local docker-host. So make you have one installed.
# To deploy to local
$ eb local run --envvars key=value,key=value
# [READY] DEPLOY TO AWS: Now that you have tested, and ready to deploy.
# create environment (dev, test-01, prod) in eb.
$ eb create
# ref: for more eb-commands: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-getting-started.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment