I’m trying to create a Memorystore Redis instance using google_redis_instance
. I’m getting the error message below, even though the IP ranges I’m using fall within the pre-configured private service access range at vpc level.
Github bugs link
hashicorp:main
← modular-magician:downstream-pr-39f83028190a2db9aa537f64ed4a1900c4445509
opened 11:43PM - 09 Mar 23 UTC
In some cases when using private service access the reserved IP range returned b… y the API may not match the value sent, instead being a subset.
It should be safe to ignore read on this field as it is immutable after instance creation, so there can be no out of band drift
b/270995408
<!--
Replace each [ ] with [X] to check it. Switch to the preview view to make it easier to click on links.
These steps will speed up the review process, and we appreciate you spending time on them before sending
your code to be reviewed.
-->
If this PR is for Terraform, I acknowledge that I have:
- [ ] Searched through the [issue tracker](https://github.com/hashicorp/terraform-provider-google/issues) for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
- [ ] Ensured that all new fields I added that can be set by a user appear in at least one [example](https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/templates/terraform/examples) (for generated resources) or [third_party test](https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/tests) (for handwritten resources or update tests).
- [ ] [Generated Terraform providers](https://github.com/GoogleCloudPlatform/magic-modules/blob/main/docs/content/docs/getting-started/generate-providers.md), and ran [`make test` and `make lint`](https://googlecloudplatform.github.io/magic-modules/docs/getting-started/run-provider-tests/#run-unit-tests) in the generated providers to ensure it passes unit and linter tests.
- [ ] [Ran](https://github.com/GoogleCloudPlatform/magic-modules/blob/main/docs/content/docs/getting-started/run-provider-tests.md) relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
- [ ] Read the [Release Notes Guide](https://github.com/GoogleCloudPlatform/magic-modules/blob/main/.ci/RELEASE_NOTES_GUIDE.md) before writing my release note below.
<!-- AUTOCHANGELOG for Downstream PRs.
Please select one of the following "release-note:" headings:
- release-note:enhancement
- release-note:bug
- release-note:note
- release-note:new-resource
- release-note:new-datasource
- release-note:deprecation
- release-note:breaking-change
- release-note:none
Unless you choose release-note:none, please add a release note.
See .ci/RELEASE_NOTES_GUIDE.md for writing good release notes.
You can add more release note blocks if you want more than one CHANGELOG
entry for this PR.
-->
**Release Note Template for Downstream PRs (will be copied)**
```release-note:bug
redis: fixed a bug causing diff detection on `reserved_ip_range` in `google_redis_instance`
```
Derived from https://github.com/GoogleCloudPlatform/magic-modules/pull/7429
As per tracker, it has been already fixed in google provider version 4.58.0
Error message :
Error creating Instance: googleapi: Error 400: com.google.apps.framework.request.StatusException: generic::INVALID_ARGUMENT: Field instance.reserved_ip_range must match the name of an allocated IP address range associated with the private service connection.
Can anyone please help on this.