# Ensure CloudFront distributions are set to HTTPS

- Source: https://support.icompaas.com/support/solutions/articles/62000127091-ensure-cloudfront-distributions-are-set-to-https
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Security Controls](https://support.icompaas.com/support/solutions/62000065178) › [AWS Services](https://support.icompaas.com/support/solutions/folders/62000097507)
- Last updated: 2026-06-03
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

## Description: 

CloudFront is a fast content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to customers globally with low latency, high transfer speeds, all within a developer-friendly environment. CloudFront is a web service that speeds up the distribution of your static and dynamic web content, such as .html, .css, .js, and image files to your users. Through a worldwide network of data centers, It delivers your content. This network of data centers is called edge locations.

CloudFront speeds up distribution of your static and dynamic web content, such as .html, .css, .php, image, and media files. When users request your content, CloudFront delivers it through a worldwide network of edge locations that provide low latency and high performance. 

  

Rationale: 

At the end-users, they can view as encrypted from using HTTPS in the CloudFront distribution, this configuration will help to deliver web application content securely. Web distribution viewer protocol policy redirects HTTP requests to HTTPS requests.

  

Impact:

Enabling the HTTPS in CloudFront distribution encrypts secure the communications between your CloudFront distribution and end-users.

  

Pre-requisite:

-   You must have Distribution in the CloudFront.
    
-   You must have a domain for the viewers to see through a web application.
    

  

Remediation:

Test Plan: 

1.  Sign in to the AWS Management Console
    
2.  Open the CloudFront console at [https://console.aws.amazon.com/cloudfront/](https://console.aws.amazon.com/cloudfront/)
    
3.  Select the ID in the Distribution section for examining
    
4.  In the selected distribution go to the Behaviors tab, where you can see the viewer protocol policy  
    

Using AWS CLI:

To get the list of distribution

aws cloudfront list-distributions --output table --query 'DistributionList.Items\[\*\].Id'

To get a CloudFront distribution configuration

aws cloudfront get-distribution-config --id EDFDVBD6EXAMPLE

Implementation Steps:

1.  Sign in to the AWS Management Console
    
2.  Open the CloudFront console at [https://console.aws.amazon.com/cloudfront/](https://console.aws.amazon.com/cloudfront/)
    
3.  Select the ID in the Distribution section to edit the behavior
    
4.  In the selected distribution go to the Behaviors tab and choose the behavior and click on the Edit button  
      
      
    
5.  In Behavior Settings choose the viewer protocol policy to HTTPS only  
    
6.  Click on  the Yes, Edit button
    

Backout Plan:

To reconfigure previous behavior follow the above implementation steps and select the previous options as per audit and then click on the yes, edit button to save the configuration.

References:

-   [https://docs.aws.amazon.com/cloudfront/?id=docs\_gateway](https://docs.aws.amazon.com/cloudfront/?id=docs_gateway)
    
-   [Configuring and using standard logs (access logs) - Amazon CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
