Control: CloudFront distributions should not point to non-existent S3 origins
Description
This control checks whether AWS CloudFront distributions are pointing to non-existent AWS S3 origins. The control fails for a CloudFront distribution if the origin is configured to point to a non-existent bucket. This control only applies to CloudFront distributions where an S3 bucket without static website hosting is the S3 origin.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cloudfront_distribution_no_non_existent_s3_origin
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cloudfront_distribution_no_non_existent_s3_origin --share
SQL
This control uses a named query:
cloudfront_distribution_no_non_existent_s3_origin