3 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
¿Maybe you need a public IP to resolve "myprojectdbinstance.c42n4hggvli1.eu-central-1.rds.amazonaws.com" DNS?
beantwortet vor einem Jahr
0
Fagrate 1.3 or 1.4 ?
With Fargate 1.4, did you create a Task Execution Role ?
Take a look at this tutorial.
https://aws.amazon.com/premiumsupport/knowledge-center/ecs-fargate-task-database-connection/
Did you create the environment variables in the task definition ?
beantwortet vor einem Jahr
Fargate is latest, I do have the default execution role
ecsTaskExecutionRole
. I do have the environment variables in the task definition.DATABASE_URL
,DATABASE_USERNAME
andDATABASE_PASSWORD
, which point to my RDS DB endpoint, username and password.
0
It turned out that the right DATABASE_URL
should be postgres://postgres@mydbendpoint/my_project_db
and it worked.
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 9 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren
I do set Public IP on the task