π§ 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
- Located in: π AWS Account IAM Password Policy Number of passwords to remember is not set to 24 π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π AWS Account | CA10__CaAwsAccount__c | 1 | 1 | 11 |
Usesβ
Test Results π’β
Generated at: 2025-05-10T12:01:21.564825498Z 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/policy.yaml | 4AFAF14C34C75D62352CCD4DEB2D2C93 |
Open | /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml | B303F7E7E5C72A0BC778CE28095A446B |
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 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/account/password-policy-number-of-passwords-to-remember-24/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar 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: "Number of passwords to remember is set to the max of 24."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_IAM_Password_Policies__r"
status: "COMPLIANT"
- status: "INCOMPLIANT"
currentStateMessage: "Number of passwords to remember should be set to the max of 24."
remediationMessage: "Consider setting the Number of passwords to remember to the max of 24."
check:
RELATED_LIST_HAS:
relationshipName: "CA10__AWS_IAM_Password_Policies__r"
status: "INCOMPLIANT"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "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: "Password policy does not have 'Number of passwords to remember' set to the max of 24"
remediationMessage: "Set 'Number of passwords to remember' to the max of 24"
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__passwordReusePrevention__c"
right:
NUMBER: 24.0
- status: "COMPLIANT"
currentStateMessage: "Password policy have 'Number of passwords to remember' set to the max of 24"
check:
IS_EQUAL:
left:
EXTRACT: "CA10__passwordReusePrevention__c"
right:
NUMBER: 24.0
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."