turbot/alicloud_compliance

Query: ram_password_policy_expire_90

Usage

steampipe query alicloud_compliance.query.ram_password_policy_expire_90

SQL

select
-- Required Columns
'acs:ram::' || a.account_id as resource,
case
when max_password_age <= 90 then 'ok'
else 'alarm'
end as status,
case
when max_password_age is null then 'Password expiration not set.'
else 'Password expiration set to ' || max_password_age || ' days.'
end as reason,
-- Additional Dimensions
a.account_id
from
alicloud_account as a
left join alicloud_ram_password_policy as pol on a.account_id = pol.account_id;

Controls

The query is being used by the following controls: