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:
![](https://static.packt-cdn.com/products/9781789345018/graphics/assets/973a9144-42bb-40de-a7e6-90c0ab1fa7f2.png)
- 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.
![](https://static.packt-cdn.com/products/9781789345018/graphics/assets/dff068e8-3c1a-4a32-9d07-ff5f59408871.png)
- In Configure Load Balancer, specify a load balancer name (hello-world-lb) in the Basic Configuration, as shown in the following...