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
已提問 7 個月前檢視次數 144 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南