๐ง AWS IAM Role unused - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/aws/iam/role-unused/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ AWS IAM Role
- ๐ AWS IAM Role - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2026-02-10T22:32:59.239826166Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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โ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/iam/role-unused/policy.yaml | 645A8526A392E1AD10F10BB04BCBEE0B |
| Open | /ce/ca/aws/iam/role-unused/prod.logic.yaml | 7941DCFBD71EFF155BD548292366F850 |
| Open | /ce/ca/aws/iam/role-unused/test-data.json | C701129617ACE393E12B504C4653D251 |
| Open | /types/CA10__CaAwsRole__c/object.extracts.yaml | D774CF4413880116E6387CFD02D315AF |
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โ
---
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."