Skip to main content

🧠 AWS Account IAM Password Policy Number of passwords to remember is not set to 24 - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒a01βœ”οΈ 199βœ”οΈ CA10__AWS_IAM_Password_Policies__r.has(COMPLIANT)βœ”οΈ null
🟒a02βœ”οΈ 299βœ”οΈ CA10__AWS_IAM_Password_Policies__r.has(INCOMPLIANT)βœ”οΈ null
🟒a03βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/policy.yaml3683F88F1732D644E6B0B84BEF4E51CD
Open/ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml44ADAFDE74263CE805AA800B1EF858A2
Open/ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/test-data.json25BB5521D4542C8238D6A3CEDA81A189
Open/types/CA10__CaAwsPasswordPolicy__c/object.extracts.yaml2C1D97EF4F574F9BE1A9C1EB7CAE6A9C

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAccount__c"
testData:
- file: test-data.json
conditions:
- status: "COMPLIANT"
currentStateMessage: "The number of passwords to remember is set to the maximum of 24."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_IAM_Password_Policies__r"
status: "COMPLIANT"
- status: "INCOMPLIANT"
currentStateMessage: "The number of passwords to remember is not set to the maximum of 24."
remediationMessage: "Set the number of passwords to remember to the maximum of 24."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_IAM_Password_Policies__r"
status: "INCOMPLIANT"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The AWS account password policy does not exist."
relatedLists:
- relationshipName: "CA10__AWS_IAM_Password_Policies__r"
importExtracts:
- file: /types/CA10__CaAwsPasswordPolicy__c/object.extracts.yaml
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The password policy does not have 'Number of passwords to remember' set to the maximum of 24."
remediationMessage: "Set 'Number of passwords to remember' to 24."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__passwordReusePrevention__c"
right:
NUMBER: 24.0
- status: "COMPLIANT"
currentStateMessage: "The password policy has 'Number of passwords to remember' set to the maximum of 24."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__passwordReusePrevention__c"
right:
NUMBER: 24.0
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."