Control: IAM user MFA should be enabled
Description
Enable this rule to restrict access to resources in the AWS Cloud.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.iam_user_mfa_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.iam_user_mfa_enabled --share
SQL
This control uses a named query:
select user_arn as resource, case when not mfa_active then 'alarm' else 'ok' end as status, case when not mfa_active then user_name || ' MFA device not configured.' else user_name || ' MFA device configured.' end as reason , account_idfrom aws_iam_credential_report;