-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Network ID as a top level module output? #307
Comments
Hi @alexjmoore |
It's a good point, because I did think it unusual to have to use it. It's in the
It actually confused me quite a bit getting it to work as the docs for that resource aren't super clear what you put there, initially I tried just the network name, then the self_link, in fact even on the gcloud cli the network name doesn't work....I suspect its an inconsistency on the API itself. Thoughts? |
Since usage of the network ID is quite rare and there is a solution here, I'm inclined to think we shouldn't add an additional output. |
Is it worth raising a case against the provider itself to see if it makes sense to revise resource google_active_directory_domain to take the self link you think? |
Sure, I think that would be a reasonable request since most resources already accept self-links. |
@morgante it seems the provider folks indicate that id is the preferred field, as per: hashicorp/terraform-provider-google#9546 thoughts? |
Hmm, I think we can add this as an output then. |
Hi, I have submitted a PR for this issue. |
Fixed by #315 |
It would be nice to get the network ID as a top level output from the module. For example I had to do this to get the ID:
module.network["vpc-test"].network.network.id]
Would be nice to have:
module.network["vpc-test"].network_id]
The text was updated successfully, but these errors were encountered: