turbot/aws_insights

Query: iam_user_mfa_devices

Usage

powerpipe query aws_insights.query.iam_user_mfa_devices

Steampipe Tables

SQL

select
mfa ->> 'SerialNumber' as "Serial Number",
mfa ->> 'EnableDate' as "Enable Date",
path as "User Path"
from
aws_iam_user as u,
jsonb_array_elements(mfa_devices) as mfa
where
arn = $1
and account_id = split_part($1, ':', 5);

Dashboards

The query is used in the dashboards: