π§ AWS OpenSearch Domain has a public endpoint - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-11-17T14:33:41.455098696Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ extract('CA10__endpoint__c').isNotEmpty() | βοΈ null |
| π’ | test3 | βοΈ 399 | βοΈ extract('CA10__vpcEndpoints__c').isNotEmpty() | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/opensearch/domain-vpc-endpoint/policy.yaml | 0797BCA7E6E0329AF74F3070C1B50021 |
| Open | /ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml | 0B1533C8A750E019680EF7DDE9EB6FC5 |
| Open | /ce/ca/aws/opensearch/domain-vpc-endpoint/test-data.json | EFC1549996BB4EEE4C88404DF7982836 |
| Open | /types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml | C072626C7FFF5273DA4B104B530A027E |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/opensearch/domain-vpc-endpoint/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsElasticsearchDomain__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine OpenSearch Domain endpoint configuration."
check:
AND:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__endpoint__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__vpcEndpoints__c"
- status: "INCOMPLIANT"
currentStateMessage: "The OpenSearch domain has a public endpoint and is not deployed within a VPC."
remediationMessage: "Deploy the OpenSearch domain within a VPC to restrict access."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__endpoint__c"
- status: "COMPLIANT"
currentStateMessage: "The OpenSearch domain is deployed within a VPC."
check:
NOT_EMPTY:
arg:
EXTRACT: "CA10__vpcEndpoints__c"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."