Skip to content
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

Validate that subnetwork_project should match with the project in subnetwork field in google_compute_instance resource #8089

Conversation

modular-magician
Copy link
Collaborator

closes hashicorp/terraform-provider-google#15749

The subnetwork_project field is ignored in the API request when a self_link is given in subnetwork, but not in terraform which is correct behavior because subnetwork_project is still in the code. Suppressing a diff on this seems unreasonable because providing something like this isn't really a valid config

subnetwork_project = "projectA"
subnetwork = "...projectB..."

Maybe throw an error when this happens?

Release Note Template for Downstream PRs (will be copied)

compute: validated that `network_interface.subnetwork_project` should match with the project in `network_interface. subnetwork` field when `network_interface.subnetwork` has full self_link in `google_compute_instance` resource

Derived from GoogleCloudPlatform/magic-modules#11537

…subnetwork` field in `google_compute_instance` resource (#11537)

[upstream:a4183752c8464e20aa4055ed0b0520f309a09904]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 0b77357 into hashicorp:main Sep 3, 2024
@modular-magician modular-magician deleted the downstream-pr-a4183752c8464e20aa4055ed0b0520f309a09904 branch November 16, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant