turbot/terraform_aws_compliance

Query: sqs_queue_policy_no_action_star

Usage

powerpipe query terraform_aws_compliance.query.sqs_queue_policy_no_action_star

Steampipe Tables

SQL

select
address as resource,
case
when ((attributes_std ->> 'policy')::jsonb ) -> 'Statement' @> '[{"Action": "*"}]' then 'alarm'
else 'ok'
end as status,
split_part(address, '.', 2) || case
when ((attributes_std ->> 'policy')::jsonb ) -> 'Statement' @> '[{"Action": "*"}]' then ' policy allow wildcard action'
else ' policy is ok'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_sqs_queue_policy';

Controls

The query is being used by the following controls: