I am trying to figure out how can i set up two or more applications in single repository.
Lets say: I wanted to keep separate Eb Applications for Production(P) and Development(D) with one environment each(P > env-p & D > env-d). So how can i config my repository that master branch points to P > env-p and development branch points to D > env-d.
Note: I have setup Elastic Beanstalk in single AWS account with different applications. I have tried searching but could not anything related to this.
If any body have done this please share your views.
Thanks in advance.
I had a similar problem with filebeat configs in the same situation.
Basically, you need to use environment variables to differentiate the environment, and then run different commands in the container_commands section depending on which environment variables you have set.
You can see my worked example here: https://www.dativa.com/simplifying-filebeat-logging-with-elastic-beanstalk/