strapi / strapi-docker

Install and run your first Strapi project using Docker
https://strapi.io
MIT License
1.16k stars 447 forks source link

Strapi deployment on AWS Fargate (Serverless)-Aurora MySQL (Serverless) #292

Closed tusharpatil985 closed 3 years ago

tusharpatil985 commented 3 years ago

Hello All,

I am trying to deploy the Strapi on AWS Fargate serverless environment through GitlabCI. Using AWS MySQL Aurora database for the DB integration. The database is up and running properly. When my CICD is trying to deploy it on Fargate, somehow it is not able to get connected with my DB. I am injecting env variables in Task Definition through Secret manager.

I am getting this error "getaddrinfo ENOTFOUND" in cloudwatch logs. Not sure what to do as everything is going on through CICD only. I can think of, Do we need to mention anything in database.js file or server.js file regarding my database or in Dockerfile? Or in GitlabCI configuration?

I know this is a very specific process but still if any one would be able to help me out.

Thanks, Tushar

tusharpatil985 commented 3 years ago

Resolved it with some modifications in the solution.