Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.
Error: Error updating Instance "projects/{project-id}/locations/europe-north1/instances/{instance-id}": googleapi: Error 400: > Secondary IP Range can not be updated on instances that use read replicas
com.google.apps.framework.request.StatusException: generic::INVALID_ARGUMENT: > Secondary IP Range can not be updated on instances that use read replicas
Details:
It should have worked since the secondary_ip_range was set to auto prior to terraform apply.
Actual Behavior
Failes.
Steps to Reproduce
Create the above redis instance without specifying any value for seconday_ip_range
terraform apply
Add secondary_ip_range = "auto"
terraform apply will now report 1 addition, secondary_ip_range = auto but the terraform state already indicate it's set to auto.
Apply fails with above error message
Important Factoids
The initial creation didn't specify a secondary_ip_range, so I assume auto was used implicitly under the hood. Setting it explicitly to auto after the instance has been created results in an error.
It works if secondary_ip_range is set explicitly to null.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
google_redis_instance
Terraform Configuration Files
Debug Output
Expected Behavior
It should have worked since the
secondary_ip_range
was set toauto
prior toterraform apply
.Actual Behavior
Failes.
Steps to Reproduce
seconday_ip_range
terraform apply
secondary_ip_range = "auto"
terraform apply
will now report 1 addition,secondary_ip_range = auto
but the terraform state already indicate it's set to auto.Important Factoids
The initial creation didn't specify a
secondary_ip_range
, so I assumeauto
was used implicitly under the hood. Setting it explicitly toauto
after the instance has been created results in an error.It works if
secondary_ip_range
is set explicitly tonull
.b/319824812