Skip to main content

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

Usesโ€‹

Test Results ๐ŸŸขโ€‹

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

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

FileMD5
Open/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/policy.yaml3456D34662857F74632A489964104AB9
Open/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/prod.logic.yamlD75502113D4911F73DE2E967C17A70F0
Open/ce/ca/aws/iam/detach-aws-cloudshell-full-access-policy/test-data.jsonEC23AD1C2566AEA6DAD8CD6295140BC6
Open/types/CA10__CaAwsIamPolicy__c/object.extracts.yamlC48327B50CE4EB54B3C6B2B464134BB3

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