Closed fideloper closed 8 months ago
Hacking up the local copy of this module to comment out engine = var.engine
seems to make it work:
(I'm happy for this to by my own misunderstanding tho :P )
I experienced the same. While reading the documentation I noticed that in the examples they only create a replication_group.
Based on your configuration, this module creates both a aws_elasticache_cluster and aws_elasticache_replication_group resource while the documentation suggests you only need aws_elasticache_replication_group. Even though it's counter-intuitive this made me try to set 'create_cluster = false'.
For me this resulted in the desired cluster where you can control the number of replicas using num_cache_clusters.
Thanks! That's likely it, i'll try it out
I'm going to lock this issue because it has been closed for 30 days β³. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
I'm attempting to create a redis instance with a read replica/multi-az failover. It doesn't really make sense to me:
I can see that
engine
is not conditionally applied, it's always set to eitherredis
ormemcached
, so I can't unset it.If I exclude
replication_group_id
, I receive this error:This has put me in a weird state where I cannot even destroy the cluster parts that were created (I get the same error
"engine": only one of
engine,replication_group_idcan be specified, but
engine,replication_group_idwere specified.
).I'm having a hard time parsing out if this is an issue of my understanding, a quirk of this module, or if AWS's API is weird here.
Versions
1.0.0
Reproduction Code [Required]