Upgrade ElastiCache Redis Cluster with Terraform

0

I have an ElastiCache Replication Group that was provisioned through the management console and then imported into Terraform. The Terraform code matches the infrastructure that currently exists in AWS. To upgrade the cluster to the latest version, I changed the engine_version from '5.0.6' to '7.0', and changed the parameter_group_name from a custom 5.0 group to the 'default.redis7.cluster.on' parameter group. However, the terraform plan only shows the change to engine_version, not to parameter_group_name. If I attempt to apply this change, I receive an error that I "Must specify a parameter group for the engine major version upgrade from redis 5.0 to 7.0". How can I use Terraform to upgrade an ElastiCache cluster?

David
asked 6 months ago141 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions