Creating an application load balancer
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 onCreate
for theApplication Load Balancer
, as shown in the following screenshot. An application load balancer is used forHTTP
/HTTPS
request protocols.
- In
Configure Load Balancer
, specify a load balancer name (hello-world-lb
) in theBasic Configuration
, as shown in the following screenshot, and selectinternet-facing
as theScheme
. Only a-z, A-Z, 0-9, and hyphens may be used in the load balancer name. - Select
ipv4
as theIP address...