-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Memorystore Redis should not recreate instance while using named reserved_ip_range #11243
Comments
Facing same issue of recreation of redis instance . If i use the cidr range which is mentioned in the terraform docs for the reserved_ip_range , it throws error and not allow to create redis instance However, by using the subnet name, terraform allows to create the redis instance but while running the plan again , it recreates the instance as reserved_ip_range is expected cidr range and it was created with subnet name. |
We found a workaroundby referring reserved IP range using datasource first and adding network id to
|
I was able to resolve the issue through following code. I fetched global allocated IP range through data access block which is being passed as a named attribute to reserved_ip_range while provisioning memorystore - redis instance.
Feels like either the documentation is outdated or incorrect. When i looked into Troubleshooting Networking Issues, with private service access connect mode on, you can't specify reserved_ip_range which i hadn't faced. But there is an another doc that says if there are multiple IP address ranges allocated for private services access, you can use the --reserved-ip-range gcloud flag to choose which allocated ranges to use when creating your Redis instance. Refer Custom ranges with private services access Note - Even if you had allocated larger IP CIDR block range (for instance - 10.x.0.0/22), Redis instance will only make use of /29 CIDR block range. |
I believe we can close this one. It was resolved in #7429. I've verified this by using a named value for |
closed with GoogleCloudPlatform/magic-modules#7429 |
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. |
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
Terraform v1.1.4
on linux_amd64
Affected Resource(s)
Terraform Configuration Files
reserved_ip_range is a named private range for 10.10.0.0/16
Expected Behavior
Running terraform apply command should not recreate instance without any change. The
reserved_ip_range
should store the name of the range instead of the computed /29 range from the initial range size.Actual Behavior
Running terraform apply without any change require recreating instance because of
reserved_ip_range
named value.b/302797595
The text was updated successfully, but these errors were encountered: