π§ AWS ElastiCache Redis Cluster Auto Minor Version Upgrade is not enabled - prod.logic.yamlπ’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/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-07T12:02:21.417905245Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| π’ | test1 | βοΈ 99 | βοΈ isDisappeared(CA10__disappearanceTime__c) | βοΈ null |
| π’ | test2 | βοΈ 300 | βοΈ otherwise | βοΈ null |
| π’ | test3 | βοΈ 299 | βοΈ not(extract('CA10__autoMinorVersionUpgrade__c')) | βοΈ null |
| π’ | test4 | βοΈ 199 | βοΈ not(setOfText(['redis', 'valkey']).contains(extract('CA10__engine__c'))) | βοΈ null |
Generation Bundleβ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/policy.yaml | E6C577998BA3EDAD97806F327B71CD5D |
| Open | /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/prod.logic.yaml | A94E7DCED88D5CA0BA17C5C79843F366 |
| Open | /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/test-data.json | 12EB1F7C7CC4A8784F19B9F5DBE50C9C |
| Open | /types/CA10__CaAwsCacheCluster__c/object.extracts.yaml | 149E948C3FC56157AFB5E33CEAD7558E |
Available Commandsβ
repo-manager policies generate FULL /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/elasticache/redis-cluster-auto-minor-version-upgrade/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:
arg:
CONTAINS:
arg:
SET:
itemType: TEXT
items:
- "redis"
- "valkey"
search:
EXTRACT: "CA10__engine__c"
- status: "INCOMPLIANT"
currentStateMessage: "ElastiCache Cluster Auto Minor Version Upgrade is not enabled."
remediationMessage: "Consider enabling Auto Minor Version Upgrade for this ElastiCache Cluster."
check:
NOT:
arg:
EXTRACT: CA10__autoMinorVersionUpgrade__c # autoMinorVersionUpgrade != true
otherwise:
status: "COMPLIANT"
currentStateMessage: "ElastiCache Cluster Auto Minor Version Upgrade is enabled."