-3

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 ????

smac2020
  • 9,637
  • 4
  • 24
  • 38
  • 2
    Its 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 Answers2

0

This use case is documented here:

https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/usecases/Creating_rds_item_tracker

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