In this article we'll go through the creation of an application load balancer and the DNS setup for pointing the desired Opal hostname to the load balancer.

Create the Application Load Balancer

From the AWS console, go into EC2, then select Load Balancers.

  • Click Create Load Balancer.

  • Select Application Load Balancer:

  • Select the VPC where the Opal instance is running.

  • Select the mappings matching the Opal instance's availability zone.

  • Select the same security group the Opal instance is using.

  • Under listeners, click Create target group.

  • Select Instances target type.

  • Select protocol HTTP with port 80.

  • Under Health checks, use the following settings:

  • Under Register targets, select the Opal instance with port 80, then click Include as pending below.

  • The target group is now ready.

Coming back to Listeners and routing, we can now select the created target group. Make sure the HTTPS protocol is selected:

We can now map a certificate to this load balancer, if using ACM:

Click Create load balancer.

DNS setup

The last step is to add a CNAME record in your DNS provider to make your desired hostname point to the ALB.

  • Example: CNAME with name opal.acme.com with target testingalb01-1210246405.us-east-2.elb.amazonaws.com.

You can now access Opal in the browser using your set hostname.

Did this answer your question?