The following procedure is used to configure a Fargate ECS service with an application load Balancer:
- Create an application load balancer
- Create a task definition
- Create a service
- Configure the application load balancer with the service
- Invoke the service
First, we shall create an application load balancer:
- Open the EC2 Console in a browser by going to https://console.aws.amazon.com/ec2, and select Load Balancing | Load Balancers.
- Click on Create Load Balancer, as shown in the following screenshot:
- In Select load balancer type, click on Create for the Application Load Balancer, as shown in the following screenshot. An application load balancer is used for HTTP/HTTPS request protocols.
- In Configure Load Balancer, specify a load balancer name (hello-world-lb) in the Basic Configuration, as shown in the following...