-
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
google_organization_policy support conditional expression #9341
Comments
Hi! Could you please provide a link to the REST api? Thanks! |
The org policy format has changed to enable using tags in conditions example Resource Manager REST API v1 are the same. Not available en v2 nor v3 Org resource:
Folder resource:
Project resource:
|
any movement on this? |
It's quite tricky to find but it's actually available in another endpoint, see: https://cloud.google.com/orgpolicy/docs/reference/rest It's such a hidden feature actually that if you set a policy with this method and try to view it on the admin console, it writes "This policy has been set with Tags through Organization Policy V2 API which is not yet supported by this Admin UI. To view/edit your policy, use the gcloud org-policies command line interface or Cloud Client Library to query the API." |
@rileykarson I'll try and switch the resource to use orgpolicy.googleapis.com/v2, MM style http calls instead of the go client, introduce parent field similar to essential_contacts_contact and see where it goes. |
GoogleCloudPlatform/magic-modules#5123 has some discussion, a summary of my thoughts being: it's possible that we're able to make it compatible but we shouldn't- ultimately, we'd be locking the resource into MMv1 with the I'm normally an advocate for stability for the resource instead, for example when a field changes names from beta -> GA within the same release track. However, a |
@ndmckinley: Assigning this to you based on your supporting b/195368328, please correct me if I got it wrong! Also, if Thomas comments here I can assign them instead. |
I'll submit a PR adding a warning docs to the |
Oh, thank you! |
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. |
Community Note
Description
Ability to define conditional expressions and reference tags in
google_organization_policy
. Docs: https://cloud.google.com/resource-manager/docs/organization-policy/tags-organization-policyNew or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: