To the left of the EC2 dashboard, under the LOAD BALANCING section, select Load Balancers and create a load balancer.
Select the Application Load Balancer type.
For step 1 of the load balancer configuration, configure it to match the screenshot below.
Made sure you add listeners for both HTTP and HTTPS. A HTTP listener should be there by default.
For the Availability Zones section, make sure you select the VPC you created earlier. You should be able to tick two availability zones. In the dropdown for each availability zone, you should be able to select each public subnet you created.
Step 2 of creating the load balancer needs you to select a certificate for the load balancer. Make sure you have completed the prerequisites for this documentation.
Select the certificate you want to use.
Step 3 requires you to select a security group for your load balancer. Deselect the default security group and select the load balancer security group you created earlier.
Step 4 requires you to create a target group for your load balancer. Later this target group will contain your panintelligence EC2 instance. For now, configure it to be the same as the screenshot below.
Step 5 does not require us to do anything now. We will register a target later.
The last step is to review the load balancer settings. Check it matches the screenshot below.
After creating the load balancer, select the load balancer you created and select the Listeners tab at the bottom.
Select View/edit rules for the HTTP: 80 rule.
Select the pencil icon at the top of the window to edit the rules and then select the pencil icon next to the rule to edit the rule. Your window should match the screenshot below.
Edit the THEN column of the rule to remove the existing configuration and configure it to match the screenshot below.
Update that rule and return to the load balancer using the left chevron at the top left of the window.
Add Comment