-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
[WIP, NeedHelp] resource/aws_elasticache_cluster: Change availability_zones from Set to List #2685
Conversation
port = 11211 | ||
subnet_group_name = "${aws_elasticache_subnet_group.bar.name}" | ||
security_group_ids = ["${aws_security_group.bar.id}"] | ||
parameter_group_name = "default.memcached1.4" | ||
az_mode = "cross-az" | ||
availability_zones = [ | ||
"us-west-2a", | ||
"us-west-2b" | ||
"us-west-2b", |
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 order does not matter. Does Terraform have a type where it sorts the list first before comparing for changes (for example, if this list changes to "2a 2b 2a" from "2a 2a 2b", that's not actually something that needs to be updated.
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.
@cep21 Sorting list is good idea to avoid not necessary update. Thank you!
Are there anyone who have an idea to sort list before set, like |
@atsushi-ishibashi thanks for your work here and apologies you got stuck in the same spot here as #1476! 😄 In a similar manner to #1476, I'm going to close this PR in preference of a migration path similar to #4117. For other folks, there is a much longer explanation in that PR. I will make a note to personally get an updated PR in for this resource in v1.17.0 or shortly after. |
The replacement PR here, #4741, was merged and will release with version 1.23.0 of the AWS provider. It deprecates |
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! |
Fix: #2658
・TODO