π§ AWS ElastiCache Replication Group is not encrypted at rest - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS ElastiCache Replication Group
- π AWS ElastiCache Replication Group - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2025-11-17T14:33:35.711675697Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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β
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/elasticache/replication-group-encryption-at-rest/policy.yaml | 4FFA2F9F67B2405A5C5E67C431DE18E3 |
| Open | /ce/ca/aws/elasticache/replication-group-encryption-at-rest/prod.logic.yaml | 22747CF0F4111D83AB44D3815D9A5420 |
| Open | /ce/ca/aws/elasticache/replication-group-encryption-at-rest/test-data.json | 65B588F72EC9D5C626268C55DC199504 |
| Open | /types/CA10__CaAwsCacheReplicationGroup__c/object.extracts.yaml | 05D6F73A1FB17B4733BA531296051FB4 |
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β
---
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."