turbot/steampipe-mod-terraform-aws-compliance

Control: DynamoDB Accelerator (DAX) clusters should be encrypted at rest

Description

This control checks whether a DAX cluster is encrypted at rest. Encrypting data at rest reduces the risk of data stored on disk being accessed by a user not authenticated to AWS. The encryption adds another set of access controls to limit the ability of unauthorized users to access to the data. For example, API permissions are required to decrypt the data before it can be read.

Usage

Run the control in your terminal:

powerpipe control run terraform_aws_compliance.control.dax_cluster_encryption_at_rest_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_aws_compliance.control.dax_cluster_encryption_at_rest_enabled --share

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std -> 'server_side_encryption') is null then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'server_side_encryption') is null then ' encryption at rest disabled'
else ' encryption at rest disabled enabled'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_dax_cluster';

Tags