I used used 3 task definition to launch 3 different services of nginx, db(mysql), php(php-fpm). and I created a namespace called wp-micro. In the Nginx configuration i gave the endpoint of phpfpm service as php.wp-micro:9000
. And for connection with database service I gave the mysql endpoints as db.wp-micro:3306
. My services are up and running but I am getting error 502, while accessing the wordpress.
I had done the same thing perfectly fine using the service discovery on the Old Classic Console of ECS.