π§ AWS ElastiCache Redis Cluster automatic backups are not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml - Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
- π AWS ElastiCache Cluster
- π AWS ElastiCache Cluster - object.extracts.yaml
- π§ͺ test-data.json
Test Results π’β
Generated at: 2026-02-10T22:32:52.411656736Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 299 | βοΈ extract('CA10__snapshotRetentionLimit__c') == number(0.0) | βοΈ null |
| π’ | test3 | βοΈ 300 | βοΈ otherwise | βοΈ null |
| π’ | test4 | βοΈ 199 | βοΈ not(setOfText(['redis', 'valkey']).contains(extract('CA10__engine__c'))) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/elasticache/redis-cluster-automatic-backup/policy.yaml | 882949CA336AEC154FC84879A993A639 |
| Open | /ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml | 75F203952611A440B88DA773121A9C28 |
| Open | /ce/ca/aws/elasticache/redis-cluster-automatic-backup/test-data.json | 8F3353F609D5E8990A1FD8932A2A191F |
| Open | /types/CA10__CaAwsCacheCluster__c/object.extracts.yaml | 149E948C3FC56157AFB5E33CEAD7558E |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml
Contentβ
---
inputType: "CA10__CaAwsCacheCluster__c"
testData:
- file: "test-data.json"
importExtracts:
- file: /types/CA10__CaAwsCacheCluster__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "This policy is only applicable to Redis clusters."
check:
NOT:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- "redis"
- "valkey"
search:
EXTRACT: "CA10__engine__c"
- status: "INCOMPLIANT"
currentStateMessage: "Automatic backups are disabled for this Redis cluster."
remediationMessage: "Set a snapshot retention period greater than 0 to enable automatic backups."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__snapshotRetentionLimit__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "Automatic backups are enabled for this Redis cluster."