terraform-aws-elasticache-redis
terraform-aws-elasticache-redis copied to clipboard
Recreating the Redis cluster does not work
What is the current behavior? Currently the module tries to create the replication group before destroying any previous existing one.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
- Create a cluster
- Change any parameter that requires re-creating (Encryption enabled for example)
- Re apply
- The API to create the new version of the cluster will fail since there is already a replication group with than name.
What is the expected behavior? The module should remove the existing cluster first and then create the replacement. This should be removed https://github.com/umotif-public/terraform-aws-elasticache-redis/blob/main/main.tf#L82
Software versions?