# Elasticache Redis clustered mode

**URL:** <https://forum.ansible.com/t/elasticache-redis-clustered-mode/26814>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [February 21, 2018, 2:45pm UTC](https://forum.ansible.com/t/elasticache-redis-clustered-mode/26814 "2018-02-21T14:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WZ1](https://avatars.discourse-cdn.com/v4/letter/w/a183cd/32.png) [@WZ1](https://forum.ansible.com/u/WZ1)\
**Post date:** [February 21, 2018, 2:45pm UTC](https://forum.ansible.com/t/elasticache-redis-clustered-mode/26814/1 "2018-02-21T14:45:39Z")

</div>

Hi,

I’m trying to spin up a clustered mode of redis instance and it seems like this results in ansible trying to spin up a non clustered mode of redis. There is no parameter for clustered mode, so only way for signifying cluster seems to be setting cluster.on in parameter group. Below is my yml

> - name: Provision cluster redis aws  
> hosts: localhost  
> connection: local  
> tasks:
> - name: Set up redis cluster  
> elasticache:  
> name: “clustered-redis”  
> state: present  
> engine: redis  
> region: “us-east-1”  
> cache\_engine\_version: 3.2.10  
> node\_type: cache.t2.small  
> num\_nodes: 1  
> cache\_port: “6379”  
> cache\_parameter\_group: “default.redis3.2.cluster.on”

Below is the error I get back from running above, (aws access keys set as env variable)

> “msg”: “An error occurred (InvalidParameterCombination) when calling the CreateCacheCluster operation: Cluster mode should be disabled in parameter group, but found it is enabled.”,

Is there support for a clustered mode of redis on AWS Elasticache?

---

<div class="post-metadata">

**Author:** ![Musah\_Zakariah](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@Musah\_Zakariah](https://forum.ansible.com/u/Musah_Zakariah)\
**Post date:** [January 24, 2024, 4:14pm UTC](https://forum.ansible.com/t/elasticache-redis-clustered-mode/26814/2 "2024-01-24T16:14:45Z")

</div>

I could not find a module for elasticache where cluster on,  
however, I used the command module to create the elasticache,

aws elasticache create-replication-group --replication-group-id xxxx --cache-parameter-group-name “default.redis7.1.cluster.on”

creating a replication group can use the default.redis7.1.cluster.on"
