Creating a CloudFront Distribution | Scribe

    Creating a CloudFront Distribution

    • Hafeez Baig |
    • 13 steps |
    • 42 seconds
    information ordinal icon

    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>

    1

    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-west-1 (N. California) as a preferred choice

    2

    Type **CloudFront** in the search bar and click on **CloudFront** to view the CloudFront page

    information ordinal icon

    **What is CloudFront in AWS?** Amazon CloudFront is a content delivery network (CDN) service provided by Amazon Web Services (AWS). It accelerates the delivery of websites, APIs, video content, and other web assets to users around the world by caching content at edge locations close to the end-users.

    3

    On the **CloudFront Distribution** page click on the **Create a CloudFront Distribution** button from the right side to create a CloudFront Distribution

    4

    The wizard for creating CloudFront Distribution will open, prompting you to provide an Origin domain, Origin path and Name for your CloudFront distribution

    5

    Below the "Name" option, you can add a header for the origin by clicking on the **Add Header** button. Additionally, you can choose to **Enable Origin Shield**

    6

    Scroll to the **Additional settings** section and configure Additional settings for CloudFront

    7

    Scroll to the **Default Cache Behavior** section and select the Default cache behaviour and Viewer protocol policy

    information ordinal icon

    The three viewer protocol policies in AWS CloudFront are: 1. **HTTP and HTTPS (default)**: Allows access via both HTTP and HTTPS, automatically redirecting HTTP requests to HTTPS. 2. **Redirect HTTP to HTTPS**: Forces all HTTP requests to be redirected to HTTPS. 3. **HTTPS Only**: Permits access exclusively via HTTPS, rejecting HTTP requests outright.

    8

    Scroll to the **Cache Key and Origin Requests** section and configure the Cache key and Origin requests accordingly

    9

    Scroll to the **Web Application Firewall (WAF)** section and select the WAF configuration based on your requirements

    10

    Scroll to the **Settings** section and choose the Price class

    11

    Scroll to the **Custom SSL Certificate** section and choose or select the Custom SSL certificate for the website, or you can also Request a certificate

    12

    Scroll down to the **Standard Logging** section and select the options for both Standard logging and IPv6

    13

    After configuring the settings, click on the **Create Distribution** button to create a CloudFront distribution

    information ordinal icon

    Congratulations on completing the lab and creating a CloudFront Distribution! Good job!