Skip to main content

🧠 AWS Redshift Cluster is publicly accessible - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-05T22:32:02.871971955Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'available'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__publiclyAccessible__c') == 'Yes'βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('CA10__publiclyAccessible__c') == 'No'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/redshift/cluster-publicly-accessible/policy.yaml3435B946CFC937FF467F857718DAB239
Open/ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yamlCD52323D43E6C6983EDCC5A3900FB7A1
Open/ce/ca/aws/redshift/cluster-publicly-accessible/test-data.json1D11143CF5CDFEC8124921103A339FDE
Open/types/CA10__CaAwsRedshiftCluster__c/object.extracts.yaml978033E93A3BC4EEE31B6916039330FF

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsRedshiftCluster__c"
importExtracts:
- file: "/types/CA10__CaAwsRedshiftCluster__c/object.extracts.yaml"
testData:
- file: "test-data.json"
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Cluster is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INCOMPLIANT"
currentStateMessage: "The Redshift cluster is publicly accessible."
remediationMessage: "Modify the cluster configuration to disable public access."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__publiclyAccessible__c"
right:
TEXT: "Yes"
- status: "COMPLIANT"
currentStateMessage: "The Redshift cluster is not publicly accessible."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__publiclyAccessible__c"
right:
TEXT: "No"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."