Skip to main content

🧠 AWS ElastiCache Redis Cluster automatic backups are not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2026-02-10T22:32:52.411656736Z Open

ResultIdCondition IndexCondition TextRuntime 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​

FileMD5
Open/ce/ca/aws/elasticache/redis-cluster-automatic-backup/policy.yaml882949CA336AEC154FC84879A993A639
Open/ce/ca/aws/elasticache/redis-cluster-automatic-backup/prod.logic.yaml75F203952611A440B88DA773121A9C28
Open/ce/ca/aws/elasticache/redis-cluster-automatic-backup/test-data.json8F3353F609D5E8990A1FD8932A2A191F
Open/types/CA10__CaAwsCacheCluster__c/object.extracts.yaml149E948C3FC56157AFB5E33CEAD7558E

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​

Open File

---
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."