-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource aws_elasticache_replication_group forces new resource when paramter number_cache_clusters changes #236
Comments
Hi folks 👋 I'm currently working on an implementation for this, which hopefully can get out in the next week or two. Its probably worth mentioning that the initial implementation will come with some caveats like those noted in the original issue, including but not limited to:
For full control of replicas, I would suggest checking out the Redis Cluster Mode Disabled example in the |
Enhancement PR submitted: #4504 |
@bflad did this get merged? |
Initial support for updating |
This has been released in version 1.21.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This issue was originally opened by @martin-flaregames as hashicorp/terraform#8410. It was migrated here as part of the provider split. The original body of the issue is below.
Not sure if this is really intended by design, but using the AWS console you can remove or add cluster members without the need of recreating the whole cluster + replication group.
Terraform Version
Terraform v0.7.1
Affected Resource(s)
Expected Behavior
Just reduce or increase the number of cluster members to the specified one.
This may be a problem just because you need
automatic_failover_enabled = true
for this to work.I guess there is also an edge case if you specify
number_cache_clusters = 1
, because it depends on how themultiple-az
mode is setup andautomatic_failover_enabled
should be thenfalse
AFAIK.Actual Behavior
The redis replication group and cluster were deleted and created anew.
Steps to Reproduce
terraform apply
(will create the cluster)number_cache_clusters
to another value, like 2.terraform plan
will tell us that the cluster will be destroyed, which actually occurs when executingterraform apply
Important Factoids
Running in VPC mode.
References
The text was updated successfully, but these errors were encountered: