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
1,070 views

1 answer to this question.

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 14, 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
• 58,020 points
2,099 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
• 4,170 points
2,201 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,640 points
2,299 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
2,214 views
0 votes
1 answer

How can I just increase the size of my root disk on AWS EC2 for use with Elastic Beanstalk?

This can be done using the following ...READ MORE

answered Nov 12, 2018 in AWS by Archana
• 5,640 points
3,264 views
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, 2019 in AWS by Archu
3,611 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
• 4,170 points
4,571 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
3,984 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP