-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support location
being in the domain of a resource's URLs for only a subset of resources in an MMv1 service
#12738
Comments
Magic-modules
Technical-debt
- Request to provide service endpoints for google_tags_tag_binding
to bind location in regional resources. google_tags_tag_binding
to bind location in regional resources.
Nice find! I did some digging through the code (disclaimer: it's my 1st time looking through it and go is not my 1st language):
If anybody more familiar with the code can point me in the right direction, I can try to create a PR to have something to discuss on |
google_tags_tag_binding
to bind location in regional resources. location
being in the domain of a resource's URLs for only a subset of resources in an MMv1 service
Given this is a new pattern, we should handwrite the regional variants of these resources. We're not sure if this pattern will happen in the future, as most APIs we've seen are global-only or regional-only. |
@rileykarson So something like a new resource |
I noticed this in the cloud run YAML: |
Can anyone define the acronym |
Yep!
What's different is that the entire API is regionalized in Cloud Run's case, but only a subset of the API is regionalized for tags. The resource code is probably able to make it most of the way there, but then we end up running into the operation code which differs. There are a few possible ways to work around that (handwrite the operation handler, possible, since the
Cloud Asset Inventory (https://cloud.google.com/asset-inventory/docs/overview), I think the |
Thanks, it's starting to come together now...handwriting a separate resource seems cromulent for now.
Thank you! It makes more sense now. |
Resolved by #10630 if we do it |
I wonder if it might be easier to set up a regional variant of the product that uses the regional base_url, rather than forcing the resources to be handwritten. |
ah yeah @rileykarson already mentioned that above:
|
hashicorp#12738) [upstream:16b37875bc1fc09edf77f284f31bc5a2df9607e4] Signed-off-by: Modular Magician <[email protected]>
#12738) (#20893) [upstream:16b37875bc1fc09edf77f284f31bc5a2df9607e4] Signed-off-by: Modular Magician <[email protected]>
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files (if applicable)
Issue Description
The google_tags_tag_binding create API (https://cloud.google.com/resource-manager/reference/rest/v3/tagBindings/create) doesn't support location attribute because at the back-end it uses service endpoints like https://{{location}}-cloudresourcemanager.googleapis.com/v3/tagBindings for regional resources, but for global resources it uses service endpoint like this : http://cloudresourcemanager.googleapis.com/v3/tagBindings , that i have found out via logs of gcloud cli, as well as the documentation has not mentioned such things. So, if it's possible to provide subset of resources or endpoints that can bind tags to regional resources via API or terraform.
Important Factoids
References
Information about referencing Github Issues: #11448
The text was updated successfully, but these errors were encountered: