๐ง 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-06-06T12:03:00.438049365Z 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 | โ๏ธ extract('CA10__attachmentCount__c') > number(0.0) | โ๏ธ 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 | 236C5BE1878435BDF10C17F97EBC2B45 |
| Open | /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml | 27EA931619BE841E0E583C15D8EF8E28 |
| Open | /ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/test-data.json | 9BBB7E4504F1F139B28B9A2E5FFCF6D9 |
| Open | /types/CA10__CaAwsIamPolicy__c/object.extracts.yaml | 0275D0984133394A8FDEB9F7EF7CF4FC |
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 one or more IAM entities."
remediationMessage: "Detach the AWSCloudShellFullAccess policy from any users, groups, or roles where it is not required."
check:
GREATER_THAN:
left:
EXTRACT: "CA10__attachmentCount__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "AWSCloudShellFullAccess policy is not attached to any IAM entities."