turbot/terraform_aws_compliance

Query: qldb_ledger_permission_mode_set_to_standard

Usage

powerpipe query terraform_aws_compliance.query.qldb_ledger_permission_mode_set_to_standard

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'permissions_mode') = 'STANDARD' then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'permissions_mode') = 'STANDARD' then ' permission mode set to "STANDARD"'
else ' permission mode set to "ALLOW_ALL"'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_qldb_ledger';

Controls

The query is being used by the following controls: