turbot/terraform_aws_compliance

Query: iam_account_password_policy_one_number

Usage

powerpipe query terraform_aws_compliance.query.iam_account_password_policy_one_number

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'require_numbers') is null then 'alarm'
when (attributes_std -> 'require_numbers')::bool then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std -> 'require_numbers') is null then ' number not set to required'
when (attributes_std -> 'require_numbers')::bool then ' number set to required'
else ' number not set to required'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_iam_account_password_policy';

Controls

The query is being used by the following controls: