π§ AWS Redshift Cluster is publicly accessible - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2026-02-05T22:32:02.871971955Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/redshift/cluster-publicly-accessible/policy.yaml | 3435B946CFC937FF467F857718DAB239 |
| Open | /ce/ca/aws/redshift/cluster-publicly-accessible/prod.logic.yaml | CD52323D43E6C6983EDCC5A3900FB7A1 |
| Open | /ce/ca/aws/redshift/cluster-publicly-accessible/test-data.json | 1D11143CF5CDFEC8124921103A339FDE |
| Open | /types/CA10__CaAwsRedshiftCluster__c/object.extracts.yaml | 978033E93A3BC4EEE31B6916039330FF |
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β
---
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."