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 loginpowerpipe 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_idfrom aws_iam_account_summary;