Best practice for having RDS as part of EB environment

@flamber
I created the RDS instance. I launched the beanstalk application adding environment variables modifying the 01_metabase.config file but still is not working. When I connect I have a 502 gateway error. Not sure what I’m missing. Only other thing I had to do is change the URL so it doesn’t force me to setup the RDS instance, by changing the URL I mean when I launch this link I remove all the rds% query parameters.

This is how the 01_metabase.config file looks like (The container_commands section I left it as is)

option_settings:

  • namespace: aws:elasticbeanstalk:command
    option_name: Timeout
    value: 600
  • option_name: RDS_DB_NAME
    value: metabase
  • option_name: RDS_PORT
    value: 5432
  • option_name: RDS_USERNAME
    value: dbadmin
  • option_name: RDS_PASSWORD
    value: 12345678
  • option_name: RDS_HOSTNAME
    value: postgres-test-1.XXXXX.us-east-1.rds.amazonaws.com