Control: QLDB ledger permission mode should be set to 'STANDARD'
Description
This control checks whether permission mode is set to 'STANDARD' for QLDB ledger.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.qldb_ledger_permission_mode_set_to_standard
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.qldb_ledger_permission_mode_set_to_standard --share
SQL
This control uses a named query:
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_linefrom terraform_resourcewhere type = 'aws_qldb_ledger';