Skip to main content

๐Ÿง  AWS IAM AWSCloudShellFullAccess Policy is attached - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-06-06T12:03:00.438049365Z Open

ResultIdCondition IndexCondition TextRuntime 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โ€‹

FileMD5
Open/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/policy.yaml236C5BE1878435BDF10C17F97EBC2B45
Open/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yaml27EA931619BE841E0E583C15D8EF8E28
Open/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/test-data.json9BBB7E4504F1F139B28B9A2E5FFCF6D9
Open/types/CA10__CaAwsIamPolicy__c/object.extracts.yaml0275D0984133394A8FDEB9F7EF7CF4FC

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โ€‹

Open File

---
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."