I have a requirement where i need to deploy both a production and staging application using AWS Elastic Beanstalk.I want the production environment to use an independently created RDS database so I can rebuild my environment without tearing down my RDS database.
And i also would like the staging environment to create a brand new RDS database each time it is deployed.
After initialising my environment with eb init one of the questions ask
Create an RDS DB Instance? [y/n]:
The result of this configuration appears to be stored in a file "config" within the .elasticbeanstalk directory. This directory is added to .gitignore.How can I have two git branches, production and staging, configured so that one creates an RDS database when started, and the other does not?