Set rds endpoint as an environment variable to Elastic Beanstalk in terraform I have the following terraform script which creates Elastic Beanstalk with rds: