Skip to main content

๐Ÿง  AWS IAM User MFA is not enabled for all users with console password - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-02-10T22:32:58.260647660Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸขa01โœ”๏ธ 199โœ”๏ธ extract('CA10__credReportPasswordEnabled__c') == falseโœ”๏ธ null
๐ŸŸขa02โœ”๏ธ 299โœ”๏ธ extract('CA10__credReportMfaActive__c') == trueโœ”๏ธ null
๐ŸŸขa03โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/aws/iam/mfa-for-all-users-with-console-password/policy.yaml4E76649D17EADB8285E2A2F98B5D8A50
Open/ce/ca/aws/iam/mfa-for-all-users-with-console-password/prod.logic.yaml163511B024711779B44A122B28EA00EE
Open/ce/ca/aws/iam/mfa-for-all-users-with-console-password/test-data.jsonFE4732CF485128BFD19FB1E55F768E68
Open/types/CA10__CaAwsUser__c/credReport.extracts.yamlF6D383D933A0B64268B39ADE7012508C

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/aws/iam/mfa-for-all-users-with-console-password/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/iam/mfa-for-all-users-with-console-password/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/iam/mfa-for-all-users-with-console-password/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/iam/mfa-for-all-users-with-console-password/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/iam/mfa-for-all-users-with-console-password/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10__CaAwsUser__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsUser__c/credReport.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy applies only to users with an enabled console password."
check:
IS_EQUAL:
left:
EXTRACT: CA10__credReportPasswordEnabled__c
right:
BOOLEAN: false
- status: "COMPLIANT"
currentStateMessage: "MFA is enabled for this user."
check:
IS_EQUAL:
left:
EXTRACT: CA10__credReportMfaActive__c
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "MFA is not enabled for this user."
remediationMessage: "Enable MFA for this user or disable console access."