Couldn't add RDS to the Elastic Beanstalk environment

1

While I'm trying to add RDS to the Elastic Beanstalk I'm getting this error:

Creating security group failed Reason: Properties validation failed for resource AWSEBRDSDBSecurityGroup with message: #/SecurityGroupIngress: expected type: JSONArray, found: JSONObject

I tried several times, found some solutions on stackoverflow like adding AmazoneRDSServiceRolePolicy role and but all attempts were unsuccessful with the same error. I've also check the CloudFormation logs but it is the same error without any additional description.

Any ideas?

  • Can you share how you define SecurityGroupIngress in CloudFormation?

  • @alatech I didn't define anything in the CloudFormation, I've only used the Elastic Beanstalk UI but here is the definition and also it seems there is no RDS related definition at all. https://prnt.sc/YLgeCwt-lNHa

2 réponses
0

Hello,

Yes, it's the default CloudFormation template used by Elastic Beanstalk to create an associated RDS that seems to be the problem. I think this is a bug that should be fixed on the aws side, right? I mean we should be able to attach an RDS to the environment without having to fix the default CloudFormation template.

Thanks

répondu il y a un an
0

I think you are dealing with key value pair data within your CloudFormation template. Since I do not have your template, I advise you to go through this blog post - which talks about several tweaks which can be used inside a CloudFormation template, specifically Ctrl + F for Use Dictionaries as Stack Parameter this might help you.

profile picture
Shankar
répondu il y a un an
  • Actually, I didn't define or build any template in CloudFormation. I've just used Elastic Beanstalk Console. However, I've searched the generated template but everything seems okay about the link that you sent

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions