-
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: Support number_cache_nodes updates #4504
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My main comment so far is that the waiting methods makes you think it may be returning an async waiter value or something, not a blocking wait call, maybe rename it or return the StateChangeConf
to wait on in the caller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update logic is getting pretty long, not sure if it could be refactored, but I think it "looks" good.
|
||
// We will try to use similar naming to the console, which are 1 indexed: RGID-001 through RGID-006 | ||
var addClusterIDs, removeClusterIDs []string | ||
for clusterID := oldNumberCacheClusters + 1; clusterID <= newNumberCacheClusters; clusterID++ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really hope these loops are correct, probably would have been good to extract this to a smaller diff function or something that could be unit tested.
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! |
Fixes #236
Changes proposed in this pull request:
number_cache_nodes
argumentaws_elasticache_cluster
resourceOutput from acceptance testing (test failure unrelated):