Verifying Our First Endpoint 🚀
Let’s confirm the deployment and ensure we can access our initial endpoint through the load balancer.
Step-by-Step Guide:
-
Navigate to the AWS Console:
- Log in to your Production or Staging AWS Management Console.
-
Search for ECS (Elastic Container Service):
- In the AWS Console search bar, type
ECS
and click on Elastic Container Service from the results.
- In the AWS Console search bar, type
-
Locate Your ECS Cluster:
- In the ECS dashboard, select your ECS Cluster.
-
Check Running Services:
- Inside your cluster, navigate to the Services tab. Click on the service.
- Find the Load Balancer:
- Click on the
View load balancer
button.
- Click on the
- Access Your Endpoint:
- Copy the URL in the DNS name section.
- Verify the Response:
- Open a new browser tab and paste the load balancer URL into the address bar.
- Make sure you are on
HTTP
, and notHTTPS
! - If everything is set up properly, you should see the message:
Please note that it may take some time (up to 5 minutes) for the endpoint to resolve and display the message.
⚠️ Make sure to double-check that your ECS service and load balancer are running properly. If you encounter any errors or the endpoint does not resolve to display the message after 5 minutes
Then refer to this.
Congratulations! 🎉
If you see the welcome message, your first endpoint is live and accessible via the load balancer. You’ve successfully deployed your service using ECS and confirmed it’s working.
For now, the address is assigned by AWS on HTTP
, but later we’ll cover how to assign it to your own DNS.