๐ง AWS IAM AWSCloudShellFullAccess Policy is attached - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
- ๐ AWS IAM Policy
- ๐ AWS IAM Policy - object.extracts.yaml
- ๐งช test-data.json
Test Results ๐ขโ
Generated at: 2026-02-10T22:32:57.788997060Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| ๐ข | test1 | โ๏ธ 99 | โ๏ธ isDisappeared(CA10__disappearanceTime__c) | โ๏ธ null |
| ๐ข | test2 | โ๏ธ 199 | โ๏ธ extract('CA10__name__c') != 'AWSCloudShellFullAccess' | โ๏ธ null |
| ๐ข | test3 | โ๏ธ 299 | โ๏ธ CA10__AWS_IAM_Role_Policy_Attachments__r.has(INCOMPLIANT) | โ๏ธ null |
| ๐ข | test4 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
| ๐ข | test5 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
| ๐ข | test6 | โ๏ธ 300 | โ๏ธ otherwise | โ๏ธ null |
Generation Bundleโ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/policy.yaml | 3456D34662857F74632A489964104AB9 |
| Open | /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml | D75502113D4911F73DE2E967C17A70F0 |
| Open | /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/test-data.json | EC23AD1C2566AEA6DAD8CD6295140BC6 |
| Open | /types/CA10__CaAwsIamPolicy__c/object.extracts.yaml | C48327B50CE4EB54B3C6B2B464134BB3 |
Available Commandsโ
repo-manager policies generate FULL /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml
Contentโ
---
inputType: "CA10__CaAwsIamPolicy__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsIamPolicy__c/object.extracts.yaml"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This is not an AWSCloudShellFullAccess policy."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__name__c"
right:
TEXT: "AWSCloudShellFullAccess"
- status: "INCOMPLIANT"
currentStateMessage: "AWSCloudShellFullAccess policy is attached to a role."
remediationMessage: "Detach the AWSCloudShellFullAccess policy from roles where it is not required."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10__AWS_IAM_Role_Policy_Attachments__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "AWSCloudShellFullAccess policy is not attached."
relatedLists:
- relationshipName: "CA10__AWS_IAM_Role_Policy_Attachments__r"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "AWSCloudShellFullAccess policy is attached to a role."
remediationMessage: "Detach the AWSCloudShellFullAccess policy from this role."
check:
NOT_EMPTY_LOOKUP: "CA10__role__r"
otherwise:
status: "COMPLIANT"
currentStateMessage: "AWSCloudShellFullAccess policy is not attached."