Remediation
Update the Security Policyβ
From Consoleβ
- Log in to the AWS Management Console.
- Navigate to the Amazon CloudFront console.
- In the left navigation pane, choose Distributions.
- Select the CloudFront distribution to reconfigure.
- Open the General tab and choose Edit.
- Under Security policy, select TLSv1.2_2025 (recommended).
- Choose Save changes.
- Repeat these steps for each CloudFront distribution, if applicable.
From Command Lineβ
-
Retrieve the current distribution configuration
aws cloudfront get-distribution-config \
--id {{distribution-id}} \
--query 'DistributionConfig' -
Identify the non-compliant setting
In the output, locate the
ViewerCertificate.MinimumProtocolVersionfield. For example:{
"ViewerCertificate": {
"SSLSupportMethod": "sni-only",
"MinimumProtocolVersion": "TLSv1",
"CertificateSource": "acm"
}
} -
Retrieve the configuration ETag
aws cloudfront get-distribution-config \
--id {{distribution-id}} \
--query 'ETag'Output:
"{{etag-value}}" -
Update the security policy
Edit the configuration from Step 1 and set the minimum protocol version to
TLSv1.2_2025,TLSv1.3_2025, orTLSv1.2_2021. Save the modified configuration ascompliant-security-policy.json.{
"ViewerCertificate": {
"SSLSupportMethod": "sni-only",
"MinimumProtocolVersion": "TLSv1.2_2025",
"CertificateSource": "acm"
}
}Note: Do not remove other required configuration fields when saving the full documentβonly update the
MinimumProtocolVersionvalue. -
Apply the updated configuration
aws cloudfront update-distribution \
--id {{distribution-id}} \
--if-match {{etag-value}} \
--distribution-config file://compliant-security-policy.json \
--query 'Distribution.Status' -
Verify the update
A successful update returns:
"InProgress"