turbot/steampipe-mod-aws-compliance

Control: S3 bucket object lock should be enabled

Description

Ensure that your AWS Simple Storage Service (AWS S3) bucket has lock enabled, by default.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.s3_bucket_object_lock_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when object_lock_configuration is null then 'alarm'
else 'ok'
end as status,
case
when object_lock_configuration is null then title || ' object lock not enabled.'
else title || ' object lock enabled.'
end as reason
, region, account_id
from
aws_s3_bucket;

Tags