turbot/terraform_aws_compliance

Query: sns_topic_encrypted_at_rest

Usage

powerpipe query terraform_aws_compliance.query.sns_topic_encrypted_at_rest

Steampipe Tables

SQL

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

Controls

The query is being used by the following controls: