Open wgaldino opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Related #27709
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Terraform Core Version
1.3.4
AWS Provider Version
4.38.0, 4.37.0, 4.36.0, 4.35.0, 4.34.0
Affected Resource(s)
Expected Behavior
I noticed that since yesterday any
aws_elasticache_replication_group
resource that before could have been created with the code below was failing.Actual Behavior
Apply fails with the following message:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Terraform init Terraform apply
Debug Output
No response
Panic Output
No response
Important Factoids
Today after some investigation I could extract the following facts:
eu-central-1
) out of 4 regions succeeded and all resources got successfully created.engine_version
is optional, however if you are using theparameter_group_name
argument it will fail. Mainly because if theengine_version
is not defined it will get the latest (redis7) and that will clash with whatever is set inparameter_group_name
.The way to solve this issue was to add the
engine_version
argument to the resource definition. That's exactly the behaviour you get when creating the cluster through the GUI, you cannot setparameter_group_name
asdefault.redis6.x.cluster.on
if you select a differentengine_version
.Possible ways of fixing it would be:
parameter_group_name
whenengine_version
is omitted. Enforce that those need to match somehow.engine_version
is optional, why not infer the engine based on theparameter_group_name
value? Doesn't it make sense? Is that really tricky?References
No response
Would you like to implement a fix?
No response