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

     1  
     2  Enable logging for CloudFront distributions
     3  
     4  ```hcl
     5   resource "aws_cloudfront_distribution" "good_example" {
     6   	// other config
     7   	logging_config {
     8   		include_cookies = false
     9   		bucket          = "mylogs.s3.amazonaws.com"
    10   		prefix          = "myprefix"
    11   	}
    12   }
    13   
    14  ```
    15  
    16  #### Remediation Links
    17   - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution#logging_config
    18