Dockerfile with AWS ECS and RDS PostgreSQL

I’m thinking about structuring a Grafana on AWS via ECS using the RDS Aurora PostgreSQL or RDS PostgreSQL database

Does anyone know the best way? or the best scenario would be to upload an EC2 + RDS instance

I made some changes to the Dockerfile Custom, but the tables need to be created in RDS, and I was just replacing the “grafana.ini” file with the RDS information

I think that’s overkill to manage own Grafana image just to have own DB config there. Just use original vendor docker image and configure Grafana via env variables, which will be defined in ESC task. E.g.

GF_DATABASE_HOST
GF_DATABASE_USER
GF_DATABASE_PASSWORD
GF_DATABASE_NAME

I would recommend to load password from AWS Secret to be secure.

BTW: any question “what is the best” is the opinionated question, better to ask technical question.