Skip to main content

๐Ÿง  AWS IAM Role unused - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸข111โœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸข112โœ”๏ธ 199โœ”๏ธ extract('CA10__lastUsedDate__c').isEmpty()โœ”๏ธ null
๐ŸŸข113โœ”๏ธ 299โœ”๏ธ extract('CA10__lastUsedDate__c').beyondLastDays(90)โœ”๏ธ null
๐ŸŸข114โœ”๏ธ 300โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/aws/iam/role-unused/policy.yaml645A8526A392E1AD10F10BB04BCBEE0B
Open/ce/ca/aws/iam/role-unused/prod.logic.yaml7941DCFBD71EFF155BD548292366F850
Open/ce/ca/aws/iam/role-unused/test-data.jsonC701129617ACE393E12B504C4653D251
Open/types/CA10__CaAwsRole__c/object.extracts.yamlD774CF4413880116E6387CFD02D315AF

Available Commandsโ€‹

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

Contentโ€‹

Open File

---
inputType: CA10__CaAwsRole__c
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsRole__c/object.extracts.yaml"
conditions:
- status: INCOMPLIANT
currentStateMessage: "The role has not been used within the tracking period and meets the unused criteria."
remediationMessage: "Delete the unused role."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__lastUsedDate__c"
- status: INCOMPLIANT
currentStateMessage: "The role has not been used in the past 90 days."
remediationMessage: "Delete the unused role."
check:
IS_BEYOND_LAST_DAYS:
offsetDays: 90
arg:
EXTRACT: "CA10__lastUsedDate__c"
otherwise:
status: COMPLIANT
currentStateMessage: "The role has been used recently."