Control: CloudFront distributions should have origin access identity enabled
Description
This control checks whether an AWS CloudFront distribution with AWS S3 Origin type has Origin Access Identity (OAI) configured. The control fails if OAI is not configured.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cloudfront_distribution_origin_access_identity_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cloudfront_distribution_origin_access_identity_enabled --share
SQL
This control uses a named query:
cloudfront_distribution_origin_access_identity_enabled