github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/cloudfront/AVD-AWS-0013/CloudFormation.md (about)

     1  
     2  Use the most modern TLS/SSL policies available
     3  
     4  ```yaml---
     5  Resources:
     6    GoodExample:
     7      Properties:
     8        DistributionConfig:
     9          DefaultCacheBehavior:
    10            TargetOriginId: target
    11            ViewerProtocolPolicy: https-only
    12          Enabled: true
    13          Logging:
    14            Bucket: logging-bucket
    15          Origins:
    16            - DomainName: https://some.domain
    17              Id: somedomain1
    18          ViewerCertificate:
    19            MinimumProtocolVersion: TLSv1.2_2021
    20      Type: AWS::CloudFront::Distribution
    21  
    22  ```
    23  
    24