Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create elastic Beanstalk environment with RDS in AWS

I am trying to create new ELB environment with existing VPC. But I am unable to create environment with following errors:

ERROR Creating security group named: sg-5xxxxxxx failed Reason: Resource creation cancelled

ERROR Creating EIP:xx.xxx.xxx.xxx failed. Reason: Resource creation cancelled.

ERROR Stack named 'awseb-e-webxxxxxx-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBEIP, AWSEBSecurityGroup, AWSEBRDSDBSubnetGroup].

Note :I still didn't cross the Elastic Ip's limit. When i configure subnet for RDS in two regions they were automatically reset to single region only while creating evironment

Any suggestions will be helpful

like image 706
Rongali Ramunaidu Avatar asked Jun 13 '18 10:06

Rongali Ramunaidu


People also ask

Does Elastic Beanstalk use RDS?

You can use Elastic Beanstalk with Amazon Relational Database Service (Amazon RDS) to set up, operate, and scale a relational database. There are two options to get started, which are the following.

What two types of environments can be created when using Elastic Beanstalk?

In AWS Elastic Beanstalk, you can create a load-balanced, scalable environment or a single-instance environment. The type of environment that you require depends on the application that you deploy.


1 Answers

I was also having issues adding database via elastic beanstalk ui after initially creating an application using the command line interface. Turns out I had messed up my IAM (AWS Services > Security, Identity, Compliance > IAM) roles setup when I first created the account. This account was missing the role AWSServiceRoleForRDS. Once I created one, I was able to successfully configure a database for the new application.

like image 94
wandac Avatar answered Oct 01 '22 19:10

wandac