Create Application Load Balancer

Create Application Load Balancer

Still in this interface:

  • Select Load balancers
  • Click Create load balancer

7.2/1

For Load balancer type, select Application Load Balancer and click Create

7.2/2

In the Basic configuration section:

  • Name: FCAJ-Lab-alb
  • Scheme: select Internet-facing
  • Load balancer IP address type: IPv4

7.2/3

In the Network Mapping section:

  • VPC: select the VPC that we created earlier
  • Availability Zones
  • Select 2 AZs, and for each AZ, select the Public subnets

7.2/4

Next:

  • In the Security group section, select Security Group Public that we created earlier
  • Listeners and routing:
    • Protocol : Port: HTTP : 80
    • Target group: select FCAJ-Lab-fe-tg

7.2/5

Review the information before creating and click Create

7.2/7

We have successfully created the application load balancer.

7.2/8

Next, we will configure the Rule for the Listener.

  • Select the Listener: HTTP:80

7.2/9

In the Rules section, click Add rule

7.2/10

  • Click Add condition
  • Select Path

7.2/11

In the Path section, we will add the path as /api/*.

7.2/12

  • Select Forward to target groups
  • Select FCAJ-Lab-be-tg
  • Click Next

7.2/13

  • Set Priority to 10 and click Next

7.2/14

Proceed to Add Rule

7.2/15

We have successfully configured the Rule for the Listener.

7.2/16