Search code examples
amazon-web-servicesamazon-elastic-beanstalk

EB Deploy to multiple environments


I have the same codebase (one git repository) that I want to upload to multiple elastic beanstalk environments. Is there a way to do this, and if so how should I set up my repository in such a way that I can push to multiple environments?

The environments are different language versions of the site, that I want to run in different beanstalks. The language is set by the environment parameters.


Solution

  • To answer my own question. The AWS EB CLI 3+ has a nice interface to deploy to multiple environments. If you add another environment to your application you can simply deploy by using

    eb deploy <environment-name>