Skip to main content

🧠 AWS OpenSearch Domain latest Service Software Update is not installed - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-11-17T14:33:41.110780387Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__serviceSoftwareUpdateAvailable__c') == 'false'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__serviceSoftwareUpdateAvailable__c') == 'true'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/opensearch/domain-software-update/policy.yamlA05701721BA1162EB76BB151587C9D83
Open/ce/ca/aws/opensearch/domain-software-update/prod.logic.yaml2EA3993449534D0A26352F3CA3227D90
Open/ce/ca/aws/opensearch/domain-software-update/test-data.json313F1EBFF1D8ECB7D3EDA231F025D597
Open/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yamlC072626C7FFF5273DA4B104B530A027E

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/opensearch/domain-software-update/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/opensearch/domain-software-update/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/opensearch/domain-software-update/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/opensearch/domain-software-update/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/opensearch/domain-software-update/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsElasticsearchDomain__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "A new service software update is available for the OpenSearch domain."
remediationMessage: "Consider installing the latest compatible service software\
\ update for the OpenSearch domain to get the latest features, security patches, and bug fixes."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__serviceSoftwareUpdateAvailable__c"
right:
TEXT: "false"
- status: "COMPLIANT"
currentStateMessage: "The OpenSearch domain is running the latest service software version."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__serviceSoftwareUpdateAvailable__c"
right:
TEXT: "true"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."