Casanovak

The one he has seen the beauty of a million times and like if it had just walked past and smiled to him in a LLTC hallway. He finds a good parking spot. Away from the dirty faced kids that has made…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Creating a CloudFront Distribution with Multiple Origins

AWS infrastructure diagram of the lab.
Diagram created by Greg Walsh, sourced from Digital Cloud Training lab documentation

As part of the Solutions Architect Associate Bootcamp from Digital Cloud Technology, we have completed a bunch of hands-on exercises and in-depth labs. One of our early in-depth labs was building a CloudFront Distribution with multiple custom origins. This allows us to demonstrate how to configure High Availability for a CloudFront Distribution.

The lab was broken down into 5 steps:

I found this lab to be straightforward and complex at the same time.

It was straightforward in that, from an implementation perspective, it is simple, as the diagram above shows.

The complexity came in all the small steps needed to make it work (establishing the s3 read-only IAM Role for the EC2 instances, configuring the security groups correctly, creating the Application Load Balancer in each region with the appropriate Target Group, configuring the Cloud Front distribution with 2 origins, one for the US region and one for the UK region, and an origin group to allow for the failover).

The web site landing page is coded to query the Instance Meta-data and return the Availability Zone, so using the ALB DNS name in each region will return the specific AZ for the region you are in.

To test the failover configuration, a security group was deleted from one of the regions to trigger routing to the other region. In my case, I deleted the security group from the US region and confirmed that the response page switched from the us-east to uk-west availability zones.

This was a fun lab to do and gave me insight into the level of detail needed to be able to successfully implement something in AWS.

Add a comment

Related posts:

My defining decade

A decade especially a formative one calls for a reflection. Despite the strong pull of reason and order, we should allow nostalgia, the chaos of our minds, and the bittersweetness of the lost past to…

How to be Happy According to Science

This thought raced across my mind as I sipped my morning coffee. It had to be possible, I thought. But then again, what is happiness? How is it created? Is it a real “thing” or is it just an idea? We…

Online Inexperienced Men with Women

You go to these live online websites, such as TWITCH, where you see these gorgeous women in front of the camera with low cut bras/half-naked showing their chests and on the chat column you see these…