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

google_compute_instance can specified the subnetwork using a self_link #290

Merged
merged 2 commits into from
Aug 4, 2017

Conversation

rosbo
Copy link
Contributor

@rosbo rosbo commented Aug 3, 2017

Fixes #247

Currently, you can only specify the subnetwork for google_compute_instance using the subnetwork name. See issue #247 for more context.

This adds the support for both name and self_link when specifying the subnetwork bringing consistency with the way other network/subnetwork fields works.

I also added support for reading the network_interface fields from GCP.

cc/ @danawillow

@rosbo rosbo requested a review from danawillow August 3, 2017 21:57
Copy link
Contributor

@danawillow danawillow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make testacc TEST=./google TESTARGS='-run=TestAccComputeInstance_subnet_custom'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./google -v -run=TestAccComputeInstance_subnet_custom -timeout 120m
=== RUN   TestAccComputeInstance_subnet_custom
--- PASS: TestAccComputeInstance_subnet_custom (118.79s)
PASS
ok  	github.com/terraform-providers/terraform-provider-google/google	118.929s

Optional: true,
Computed: true,
ForceNew: true,
DiffSuppressFunc: linkDiffSuppress,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're here, want to add a ConflictsWith for subnetwork? Then we can get rid of an if statement below

@rosbo rosbo merged commit 3fde8cf into hashicorp:master Aug 4, 2017
@rosbo rosbo deleted the google_instance_subnetwork_self_link branch August 4, 2017 18:00
z1nkum pushed a commit to z1nkum/terraform-provider-google that referenced this pull request Aug 15, 2017
negz pushed a commit to negz/terraform-provider-google that referenced this pull request Oct 17, 2017
chrisst pushed a commit to chrisst/terraform-provider-google that referenced this pull request Nov 9, 2018
luis-silva pushed a commit to luis-silva/terraform-provider-google that referenced this pull request May 21, 2019
@ghost
Copy link

ghost commented Mar 31, 2020

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.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support self_link for network_interface field subnetwork in google_compute_instance for consistency
2 participants