docs
Initial Deployment
CDK
Verify Endpoint

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:

  1. Navigate to the AWS Console:

    • Log in to your Production or Staging AWS Management Console.
  2. Search for ECS (Elastic Container Service):

    • In the AWS Console search bar, type ECS and click on Elastic Container Service from the results.
  3. Locate Your ECS Cluster:

    • In the ECS dashboard, select your ECS Cluster.
  4. Check Running Services:

    • Inside your cluster, navigate to the Services tab. Click on the service.

Create Permission Set

  1. Find the Load Balancer:
    • Click on the View load balancer button.

Create Permission Set

  1. Access Your Endpoint:
    • Copy the URL in the DNS name section.

Create Permission Set

  1. 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 not HTTPS!
    • If everything is set up properly, you should see the message:

Create Permission Set

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.