Skip to main content

🧠 AWS ElastiCache Replication Group is not encrypted at rest - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

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

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'available'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ not(extract('CA10__atRestEncryptionEnabled__c'))βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/elasticache/replication-group-encryption-at-rest/policy.yaml4FFA2F9F67B2405A5C5E67C431DE18E3
Open/ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml22747CF0F4111D83AB44D3815D9A5420
Open/ce/ca/aws/elasticache/replication-group-encryption-at-rest/test-data.json65B588F72EC9D5C626268C55DC199504
Open/types/CA10__CaAwsCacheReplicationGroup__c/object.extracts.yaml05D6F73A1FB17B4733BA531296051FB4

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsCacheReplicationGroup__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAwsCacheReplicationGroup__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The Replication Group is not available."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "available"
- status: "INCOMPLIANT"
currentStateMessage: "Encryption at rest is not enabled for this replication group."
remediationMessage: "Encryption at rest must be enabled at creation time.\
\ A new encrypted replication group must be created from a backup."
check:
NOT:
arg:
EXTRACT: "CA10__atRestEncryptionEnabled__c"
otherwise:
status: "COMPLIANT"
currentStateMessage: "Encryption at rest is enabled for this replication group."