turbot/steampipe-mod-aws-compliance

Control: S3 bucket versioning should be enabled

Description

AWS Simple Storage Service (AWS S3) bucket versioning helps keep multiple variants of an object in the same AWS S3 bucket.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.s3_bucket_versioning_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.s3_bucket_versioning_enabled --share

SQL

This control uses a named query:

select
arn as resource,
case
when versioning_enabled then 'ok'
else 'alarm'
end as status,
case
when versioning_enabled then name || ' versioning enabled.'
else name || ' versioning disabled.'
end as reason
, region, account_id
from
aws_s3_bucket;

Tags