Skip to main content

๐Ÿง  AWS Account Root User MFA is not enabled. - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸขa0โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸขa01โœ”๏ธ 199โœ”๏ธ extract('CA10__userName__c') != 'root'โœ”๏ธ null
๐ŸŸขa02โœ”๏ธ 299โœ”๏ธ extract('CA10__credReportMfaActive__c') == trueโœ”๏ธ null
๐ŸŸขa03โœ”๏ธ 399โœ”๏ธ extract('CA10__credReportPasswordEnabled__c') != trueโœ”๏ธ null
๐ŸŸขa04โœ”๏ธ 399โœ”๏ธ extract('CA10__credReportPasswordEnabled__c') != trueโœ”๏ธ null
๐ŸŸขa05โœ”๏ธ 400โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/aws/iam/root-user-mfa/policy.yamlC378BD03CEE084DF40AFB9DCDF2A9C93
Open/ce/ca/aws/iam/root-user-mfa/prod.logic.yamlA9C93C1E1FDD8AB3C301A075FF169910
Open/ce/ca/aws/iam/root-user-mfa/test-data.jsonFB9550FA93296F834FD234D624FF47E6
Open/types/CA10__CaAwsUser__c/credReport.extracts.yamlF6D383D933A0B64268B39ADE7012508C
Open/types/CA10__CaAwsUser__c/object.extracts.yaml131CCD980BE5290B2C296CE093A686DC

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/aws/iam/root-user-mfa/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/iam/root-user-mfa/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/iam/root-user-mfa/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/iam/root-user-mfa/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/iam/root-user-mfa/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10__CaAwsUser__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsUser__c/credReport.extracts.yaml
- file: /types/CA10__CaAwsUser__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy applies only to root users."
check:
NOT_EQUAL:
left:
EXTRACT: CA10__userName__c
right:
TEXT: "root"
- status: "COMPLIANT"
currentStateMessage: "The root user has MFA enabled."
check:
IS_EQUAL:
left:
EXTRACT: CA10__credReportMfaActive__c
right:
BOOLEAN: true
- status: "COMPLIANT"
currentStateMessage: "The root user does not have console credentials."
check:
NOT_EQUAL:
left:
EXTRACT: CA10__credReportPasswordEnabled__c
right:
BOOLEAN: true
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The root user does not have MFA enabled."
remediationMessage: "Enable MFA for the root user."