I am currently working on Day 38: Deploying Containerized Applications with Amazon ECS.
I have completed all the required steps, including:
- Creating a private ECR repository named
devops-ecr. - Building the Docker image from
/root/pyappand pushing it to the ECR. - Defining the task as
devops-taskdefinitionwith the required CPU/memory. - Deploying the application using an ECS service named
devops-serviceondevops-clusterwithassignPublicIp=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!
