- Newest
- Most votes
- Most comments
Hi Saurabh, your confirmation looks correct, I think that the problem you are facing is related to the strict ordering deployment required of ECS Service Connect. If you application has the following architecture:
nginx --> php(php-fpm) --> db(mysql)
You should deploy the service with ECS Service Connect enabled in the following order:
db(mysql)php(php-fpm)nginx.
As expressed in the documentation here: "The services need to be created in this order to prevent an time period when the frontend client service is running and available the public, but a backend isn't. This eliminates error messages from being sent to the public during that time period. In AWS CloudFormation, you must use the dependsOn to indicate to AWS CloudFormation that multiple Amazon ECS services can't be made in parallel or simultaneously. You should add the dependsOn to the frontend client service for each backend client-server service that the client tasks connect to." https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-concepts-deploy.html
Relevant content
- asked 2 years ago
