Skip to main content

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

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-25T12:01:54.549478664Z 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

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.yaml43F9DA7E3D1804B849073BD6C3E09D4A
Open/ce/ca/aws/elasticache/redis-cluster-automatic-backup/test-data.json76924D21295A899454A6F0D996369EA3
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: "The policy only applicable to Redis Clusters."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__engine__c"
right:
TEXT: "redis"
- status: "INCOMPLIANT"
currentStateMessage: "The Redis Cluster automatic backups are disabled."
remediationMessage: "Enable automatic backups by setting a snapshot retention period greater than 0."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__snapshotRetentionLimit__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Redis Cluster automatic backups are enabled."