Application is not accessible.
Though I am able to access the application, challenge 38 reports " Application is not accessible." Where is the issue ??
Application is not accessible.
Though I am able to access the application, challenge 38 reports " Application is not accessible." Where is the issue ??
First, make sure you’re naming everything appropriately. When I ran the task, these were as follows; I’m working from this guide to do this.
- Create a Private ECR Repository:
- Create a private ECR repository named
datacenter-ecrto store Docker images.
- Build and Push Docker Image:
- Use the Dockerfile located at
/root/pyappon theaws-clienthost.- Build a Docker image using this Dockerfile.
- Tag the image with
latesttag.- Push the Docker image to the
datacenter-ecrrepository.
- Create and Configure ECS cluster:
- Create an ECS cluster named
datacenter-clusterusing the Fargate launch type.
- Create an ECS Task Definition:
- Define a task named
datacenter-taskdefinitionusing the Docker image from thedatacenter-ecrECR repository.- Specify necessary CPU and memory resources.
- Deploy the Application Using ECS Service:
- Create a service named
datacenter-serviceon thedatacenter-clusterto run the task.- Ensure the service runs at least one task.
I set these using a vars.sh file, as so:
export ECR_REPO="datacenter-ecr"
export ECS_CLUSTER="datacenter-cluster"
export ECS_SERVICE="datacenter-service"
export TASK_DEF="datacenter-taskdefinition"
This validates off a private FARGATE address; so I’m not sure you’ve configured the service correctly, even though you appear successful setting up the image – the service won’t have a public IP endpoint if you did it per spec.
Thank you @rob_kodekloud … The service is accessible using public IP as shown in my second picture. However, I didnt set the variables in vars.sh (kind of) … Really confused if we need to complete the task with only steps what KodeKloud defines (without any deviation
)
Some of the tasks are “tweaky” and are hard to get right. It’s not that you have to do them one way; it’s just that there are a lot more ways “to get it wrong”
This task in particular is more tweaky than most.