-
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
google_compute_instance can specified the subnetwork using a self_link #290
google_compute_instance can specified the subnetwork using a self_link #290
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
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
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! |
Fixes #247
Currently, you can only specify the
subnetwork
forgoogle_compute_instance
using thesubnetwork
name. See issue #247 for more context.This adds the support for both
name
andself_link
when specifying thesubnetwork
bringing consistency with the way other network/subnetwork fields works.I also added support for reading the network_interface fields from GCP.
cc/ @danawillow