Open jeremy-balmos opened 3 months ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @jeremy-balmos 👋 Thank you for taking the time to raise this! Out of curiosity, in your testing, did the starting/ending number of AZs / cache nodes have any impact? I've seen some resources where AWS automatically adds additional AZs if less than 3 are specified, so I'm curious if that's at play here at all.
Additionally, are you able to supply debug logs (redacted as needed)? That may help whoever ultimately picks this up to look further into it.
Hey @jeremy-balmos 👋 I wanted to follow up here and see if you're still experiencing issues, or if we're okay to close this. If you're still experiencing issues, were you able to review what I mentioned above?
Terraform Core Version
1.7.5
AWS Provider Version
5.44.0
Affected Resource(s)
aws_elasticache_replication_group
Expected Behavior
When setting availability_zones to a different number than number_cache_clusters, all nodes should be created in those availability zones.
Actual Behavior
However, if you create initially with a matching number and then go update the number of nodes, terraform does not throw the error and you are able to create additional nodes without providing additional AZs. Same is true for removing nodes.
An error is thrown:
Error: creating ElastiCache Replication Group (staging-elasticache-replication-group): InvalidParameterValue: When specifying preferred availability zones, the number of cache clusters must be specified and must match the number of preferred availability zones.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
https://github.com/hashicorp/terraform-provider-aws/issues/207 - First observed with memcached https://github.com/hashicorp/terraform-provider-aws/issues/14070 - Believed to have been fixed in 4.0.0
Would you like to implement a fix?
None