π§ AWS OpenSearch Domain is not encrypted at rest - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-11-17T14:33:40.834037701Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 199 | βοΈ not(extract('CA10__encryptionAtRestEnabled__c')) | βοΈ null |
| π’ | test3 | βοΈ 200 | βοΈ otherwise | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/opensearch/domain-encryption/policy.yaml | ED7E42ADC58AD3C7B3646020CBE240D0 |
| Open | /ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml | 04522120A988D5CCEBCF342D79645B58 |
| Open | /ce/ca/aws/opensearch/domain-encryption/test-data.json | F7E2D9411867832EEF5D6FB7DEDA14BE |
| Open | /types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml | C072626C7FFF5273DA4B104B530A027E |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/opensearch/domain-encryption/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsElasticsearchDomain__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The OpenSearch domain is not encrypted at rest."
remediationMessage: "Encryption at rest cannot be enabled on an existing domain.\
\ A new domain must be created with encryption enabled."
check:
NOT:
arg:
EXTRACT: "CA10__encryptionAtRestEnabled__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The OpenSearch domain is encrypted at rest."