turbot/steampipe-mod-aws-compliance

Control: S3 bucket default encryption should be enabled

Description

To help protect data at rest, ensure encryption is enabled for your AWS Simple Storage Service (AWS S3) buckets.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.s3_bucket_default_encryption_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
arn as resource,
case
when server_side_encryption_configuration is not null then 'ok'
else 'alarm'
end status,
case
when server_side_encryption_configuration is not null then name || ' default encryption enabled.'
else name || ' default encryption disabled.'
end reason
, region, account_id
from
aws_s3_bucket;

Tags