I need proper explanation and steps to connect to an RDS database from my AWS Elastic BeanStalk Project. I have already created a RDS instance on AWS and successfully connected to it from MYSQL Workbench. After that, I have also connected it to my Elastic BeanStalk project. But still my java based website project cannot fetch data from it. Why ????
Asked
Active
Viewed 46 times
-3

smac2020
- 9,637
- 4
- 24
- 38

Swapnil Kotkar
- 121
- 11
-
2Its application specific. You havn't provided any info about your application, no code, no error messages, nothing. – Marcin May 10 '21 at 12:23
2 Answers
0
This use case is documented here:
This tutorial steps you through creating a Java Spring app that is deployed to AWS Elastic Beanstalk and queries data from an RDS instance.

smac2020
- 9,637
- 4
- 24
- 38
0
Please check if you can access your RDS instance from your elastic beanstalk environment when you set the RDS instance to public. If you can you have not configured your security groups to allow connections from your EB environments towards your rds instance.
Note: don't forget to set it to private again after you're done with testing.

Max Visser
- 577
- 4
- 10