π§ 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: 2025-10-25T12:01:54.549478664Z 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 |
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 | 43F9DA7E3D1804B849073BD6C3E09D4A |
| Open | /ce/ca/aws/elasticache/redis-cluster-automatic-backup/test-data.json | 76924D21295A899454A6F0D996369EA3 |
| 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: "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."