How to configure Elastic Beanstalk for RDS

0 votes

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?

Aug 13, 2018 in AWS by angel
• 140 points
33 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

I suggest removing the config file from .gitignore and storing two different versions of this file in the two branches - one with RDS and one without.

Your use-case can be satisfied with 'eb branch'. You can then have multiple environments with different configurations. Select 'n' for the question that asks if you want to copy settings from environment to another. You will then be able to create an environment one without an RDS and one with an RDS. You can switch between different environments using git checkout then. That way you don't have to remove the file from .gitignore.

For more information you can refer to the below link.

Deploying a Git Branch to a Specific Environment.

answered Aug 13, 2018 by anonymous

Related Questions In AWS

0 votes
1 answer

Configure Application load balancer to route http to https in Elastic beanstalk

From this document: To update your Elastic Beanstalk environment to ...READ MORE

answered Sep 6, 2018 in AWS by Priyaj
• 56,120 points
76 views
0 votes
1 answer

How to use AWS CLI with Elastic Beanstalk?

You have to create a source bundle ...READ MORE

answered Sep 28, 2018 in AWS by Archana
• 3,770 points
74 views
+1 vote
1 answer

How to make an application private on AWS Elastic Beanstalk?

Like you said by default, your application ...READ MORE

answered Oct 25, 2018 in AWS by Archana
• 5,360 points
21 views
0 votes
1 answer

How to configure IAM roles for ECS tasks?

You first need to create an IAM ...READ MORE

answered Nov 5, 2018 in AWS by anonymous
178 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I configure and attach an internet gateway for use with Elastic Load Balancing?

Follow these steps: First, create an internet gateway and ...READ MORE

answered May 16 in AWS by Archu
12 views
0 votes
1 answer

How to copy a folder from S3 to Elastic Beanstalk instance on its creation?

I had encountered similar problem. But i ...READ MORE

answered Aug 24, 2018 in AWS by Archana
• 3,770 points
323 views
0 votes
1 answer

AWS Elastic Beanstalk - How to increase instance disk capacity?

The 8 GB diskthat you are seeing ...READ MORE

answered Sep 3, 2018 in AWS by anonymous
67 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.