Issue with "Application is not accessible" validation in Day 38: Deploying Containerized Applications with Amazon ECS

I am currently working on Day 38: Deploying Containerized Applications with Amazon ECS.

I have completed all the required steps, including:

  1. Creating a private ECR repository named devops-ecr.
  2. Building the Docker image from /root/pyapp and pushing it to the ECR.
  3. Defining the task as devops-taskdefinition with the required CPU/memory.
  4. Deploying the application using an ECS service named devops-service on devops-cluster with assignPublicIp=ENABLED.

Despite the service being up and running and the container being healthy (I am able to access the application via the Public IP in my browser), the validator constantly reports “Application is not accessible.”

Here is my service configuration for reference:

“aws ecs create-service
–cluster devops-cluster
–service-name devops-service
–task-definition devops-taskdefinition
–desired-count 1
–launch-type FARGATE
–network-configuration “awsvpcConfiguration={subnets=[subnet-0f4cfcf0c4276a05b],securityGroups=[sg-0c414a03b91f91efd],assignPublicIp=ENABLED}””

Is there a specific requirement for the validator that I might have missed? For instance, does it require a specific naming convention or a particular security group rule that I haven’t addressed?

Any insights or guidance would be greatly appreciated as I am unable to pass this challenge.

Thanks in advance!

If you look at your output, when you tried to list the tasks running, it indicates that the set of running tasks is empty. So something went wrong while you were setting up the task.

This one is long and difficult to do. You may want to look at this solution and compare it to what you did; I’ve tried this, and it does work.

hello you can refer to this video tutorial for help and if it helps make sure to subscribe to my channel and star my repo .