ClickCreate target group
inEC2 > Load Balancing > Target groups
.
In the Specify group details menu, enter or select the target group information as follows and click Next
.
Select the instance whereale
is installed, enter 9001 in Ports for the selected instances, and click Include as pending below. Then clickCreate target group
.
ClickCreate Load Balancer
inEC2 > Load Balancing > Load balancers
. Then select Application Load Balancer.
Enter or select the load balancer information as follows and click Create load balancer
:
Click Add rule
in the created Load balancer page, and create a rule following these 5 steps:
Add rule
Enter the Rule name in the Name field.
Define rule conditions
ClickAdd condition
, select Host header in the modal, enterapp.[domain]
, and clickconfirm
to create a Condition card. Then clickNext
.
Define rule Actions
Select Forward to target groups for Action types, choose the previously created target group, and click Next
.
Set rule priority
Set Priority to 1 and click Next
.
Review and create
Finally, click Create
to create the rule.
ale
is running properly on the instance, the status of the target group routed by ALB will show as Healthy as in the image below.
Click Create record
in Route53 > Hosted zones > Target domain page.
Enter the values as follows in the create record page and click Create record
:
ale
.ClickRequest
in the AWS Certificate Manager dashboard, select Request a public certificate on the following screen, and clickNext
.
Enter the certificate information as follows and click Request
:
For DNS validation, clickCreate record in Route 53
on the created certificate page, then clickCreate records
.
ClickAdd listener
on the created Load balancer page inEC2 > Load Balancing > Load Balancers
.
Enter the values as follows on the next screen and click Add
:
recommended
ale
by visiting https://app.[domain]
.