0
0
AWScloud~30 mins

Edge locations and CloudFront overview in AWS - Mini Project: Build & Apply

Choose your learning style9 modes available
Edge locations and CloudFront overview
📖 Scenario: You are setting up a simple AWS CloudFront distribution to deliver content faster to users worldwide by using edge locations.This project will guide you through creating the basic CloudFront distribution configuration step-by-step.
🎯 Goal: Build a CloudFront distribution configuration that uses a specified origin domain and enables caching at edge locations.
📋 What You'll Learn
Create a dictionary called origin_config with the origin domain name.
Add a configuration variable called default_cache_behavior with viewer protocol policy.
Create a dictionary called cloudfront_distribution combining origin and cache behavior.
Add the final DistributionConfig key with enabled status to complete the CloudFront distribution configuration.
💡 Why This Matters
🌍 Real World
CloudFront is used to speed up delivery of websites and content by caching it at edge locations close to users worldwide.
💼 Career
Understanding CloudFront configuration is essential for cloud engineers and architects working with AWS to optimize application performance and security.
Progress0 / 4 steps
1
Create the origin configuration
Create a dictionary called origin_config with the key DomainName set to example-bucket.s3.amazonaws.com.
AWS
Need a hint?

Use a dictionary with the exact key 'DomainName' and value 'example-bucket.s3.amazonaws.com'.

2
Add default cache behavior configuration
Add a dictionary called default_cache_behavior with the key ViewerProtocolPolicy set to redirect-to-https.
AWS
Need a hint?

Create a dictionary named default_cache_behavior with the exact key and value.

3
Combine origin and cache behavior into distribution dictionary
Create a dictionary called cloudfront_distribution with keys Origins set to a list containing origin_config, and DefaultCacheBehavior set to default_cache_behavior.
AWS
Need a hint?

Use a dictionary with keys 'Origins' and 'DefaultCacheBehavior' referencing the previous dictionaries.

4
Add DistributionConfig enabled status
Add a key DistributionConfig to cloudfront_distribution with a nested dictionary containing Enabled set to True, and include the existing Origins and DefaultCacheBehavior inside it.
AWS
Need a hint?

Wrap the existing keys inside a new DistributionConfig dictionary and set Enabled to True.