turbot/alicloud_compliance

Query: ram_user_access_key_rotated_90

Usage

steampipe query alicloud_compliance.query.ram_user_access_key_rotated_90

Plugins & Tables

SQL

select
-- Required Columns
'acs:ram::' || account_id || ':user/' || user_name || '/accesskey/' || access_key_id as resource,
case
when create_date <= (current_date - interval '90' day) then 'alarm'
else 'ok'
end as status,
user_name || ' ' || access_key_id || ' created ' || to_char(create_date , 'DD-Mon-YYYY') ||
' (' || extract(day from current_timestamp - create_date) || ' days).'
as reason,
-- Additional Dimensions
account_id
from
alicloud_ram_access_key;