turbot/terraform_aws_compliance

Query: sqs_queue_encrypted_at_rest

Usage

powerpipe query terraform_aws_compliance.query.sqs_queue_encrypted_at_rest

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'kms_master_key_id') is null then 'alarm'
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_sqs_queue';

Controls

The query is being used by the following controls: