Control: S3 buckets with versioning enabled should have lifecycle policies configured
Description
This control checks if AWS Simple Storage Service (AWS S3) version enabled buckets have lifecycle policy configured. This rule fails if AWS S3 lifecycle policy is not enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.s3_bucket_versioning_and_lifecycle_policy_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.s3_bucket_versioning_and_lifecycle_policy_enabled --share
SQL
This control uses a named query:
s3_bucket_versioning_and_lifecycle_policy_enabled