π§ AWS Account IAM Password Policy Number of passwords to remember is not set to 24 - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-02-10T22:32:29.399707372Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/policy.yaml | 3683F88F1732D644E6B0B84BEF4E51CD |
| Open | /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml | 44ADAFDE74263CE805AA800B1EF858A2 |
| Open | /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/test-data.json | 25BB5521D4542C8238D6A3CEDA81A189 |
| Open | /types/CA10__CaAwsPasswordPolicy__c/object.extracts.yaml | 2C1D97EF4F574F9BE1A9C1EB7CAE6A9C |
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β
---
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."