turbot/alicloud_compliance

Query: ram_password_policy_expire_90

Usage

powerpipe query alicloud_compliance.query.ram_password_policy_expire_90

SQL

select
'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
, a.account_id as 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: