π§ AWS OpenSearch Domain Dedicated Master Count is fewer than three - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/opensearch/domain-dedicated-master-count/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-12-27T12:02:05.311788760Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ extract('CA10__clusterConfigDedicatedMasterEnabled__c') == 'false' | βοΈ null |
| π’ | test3 | βοΈ 499 | βοΈ extract('CA10__clusterConfigDedicatedMasterEnabled__c') == 'true' && extract('CA10__clusterConfigDedicatedMasterCount__c') >= number(3.0) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/opensearch/domain-dedicated-master-count/policy.yaml | A95087A1EDA8F5857AE1DEC6FF640F72 |
| Open | /ce/ca/aws/opensearch/domain-dedicated-master-count/prod.logic.yaml | 463AFEEB838BC0AB7092A64F2C9CA3CA |
| Open | /ce/ca/aws/opensearch/domain-dedicated-master-count/test-data.json | D98F82DDCABEF5A4B48A5867B2D7850F |
| Open | /types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml | 0D5B1BE6E92CCF38D456A62B74D84E17 |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/opensearch/domain-dedicated-master-count/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/opensearch/domain-dedicated-master-count/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/opensearch/domain-dedicated-master-count/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/opensearch/domain-dedicated-master-count/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/opensearch/domain-dedicated-master-count/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: "The dedicated master configuration is not populated in the CMDB."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__clusterConfigDedicatedMasterEnabled__c"
- status: "INCOMPLIANT"
currentStateMessage: "Dedicated master nodes are disabled for this OpenSearch Domain."
remediationMessage: "Enable dedicated master nodes and set the count to at least 3."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__clusterConfigDedicatedMasterEnabled__c"
right:
TEXT: "false"
- status: "INCOMPLIANT"
currentStateMessage: "The OpenSearch domain has fewer than 3 dedicated master nodes."
remediationMessage: "Increase the dedicated master node count to 3."
check:
LESS_THAN:
left:
EXTRACT: "CA10__clusterConfigDedicatedMasterCount__c"
right:
NUMBER: 3.0
- status: "COMPLIANT"
currentStateMessage: "The OpenSearch domain has at least 3 dedicated master nodes."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__clusterConfigDedicatedMasterEnabled__c"
right:
TEXT: "true"
- GREATER_THAN_EQUAL:
left:
EXTRACT: "CA10__clusterConfigDedicatedMasterCount__c"
right:
NUMBER: 3.0
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the fields."