Description
For a custom domain, viewer_certificate.minimum_protocol_version selects the TLS versions and ciphers CloudFront accepts from clients. The default CloudFront certificate uses the TLSv1 policy.
Potential impact
Older protocols offer weaker protection. Raising the minimum also means clients that lack the required TLS support can no longer connect.
Remediation
Choose a policy supported by the installed module and your clients that requires TLS 1.2 or later. Check the negotiated version on the domain. Configure the cache behavior to reject or redirect HTTP, and set TLS to the origin separately.
Examples
Both tasks assume a custom certificate. Supply the domain alias, matching certificate ARN, ssl_support_method and default cache behavior. An ACM certificate must be in us-east-1.
Before
- name: Configure the CloudFront distribution
community.aws.cloudfront_distribution:
state: present
caller_reference: unique-test-distribution-id
origins:
- id: my-test-origin
domain_name: www.example.com
viewer_certificate:
cloudfront_default_certificate: false
minimum_protocol_version: SSLv3
The historical SSLv3 policy cannot be used with sni-only.
After
- name: Configure the CloudFront distribution
community.aws.cloudfront_distribution:
state: present
caller_reference: unique-test-distribution-id
origins:
- id: my-test-origin
domain_name: www.example.com
viewer_certificate:
cloudfront_default_certificate: false
minimum_protocol_version: TLSv1.2_2021
TLSv1.2_2021 accepts TLS 1.2 and 1.3.