Elastic Beanstalk can automatically provision an Amazon RDS DB instance. The information about connectivity to the DB instance is exposed to your application by environment variables. You can always refer to AWS Elastic Beanstalk documentation to know more.
Hope this helped!