turbot/alicloud_compliance

Query: ram_user_access_key_rotated_90

Usage

powerpipe query alicloud_compliance.query.ram_user_access_key_rotated_90

Steampipe Tables

SQL

select
'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
, account_id as account_id
from
alicloud_ram_access_key;

Controls

The query is being used by the following controls: