turbot/steampipe-mod-aws-compliance

Control: IAM root user MFA should be enabled

Description

Manage access to resources in the AWS Cloud by ensuring MFA is enabled for the root user.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.iam_root_user_mfa_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.iam_root_user_mfa_enabled --share

SQL

This control uses a named query:

select
'arn:' || partition || ':::' || account_id as resource,
case
when account_mfa_enabled then 'ok'
else 'alarm'
end status,
case
when account_mfa_enabled then 'MFA enabled for root account.'
else 'MFA not enabled for root account.'
end reason
, account_id
from
aws_iam_account_summary;

Tags