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

     1  
     2  Enable WAF for the CloudFront distribution
     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          WebACLId: waf_id
    19      Type: AWS::CloudFront::Distribution
    20  
    21  ```
    22  
    23