terraform-google-modules / terraform-google-org-policy

Manages Google Cloud organization policies
https://registry.terraform.io/modules/terraform-google-modules/org-policy/google
Apache License 2.0
79 stars 79 forks source link

Use Organization Policy API V2 instead of Cloud Resource Manager API V1 #51

Closed dmorellet closed 1 year ago

dmorellet commented 2 years ago

TL;DR

Since terraform-provider-google v3.87.0, there is a warning message in the google_organization_policy resource docs saying : "The resource google_organization_policy has been superseded by google_org_policy_policy. It uses Organization Policy API V2 instead of Cloud Resource Manager API V1 and it supports additional features such as tags and conditions."

Could it be implemented in this module so we can effectively use the new tags and conditions features ?

Terraform Resources

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/google_organization_policy
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/org_policy_policy

Detailed design

No response

Additional information

No response

morgante commented 2 years ago

Yes, this is something we would like to do eventually but cannot provide an exact timeline for fixing. We'd be happy to review a pull request though.

prabhu34 commented 1 year ago

I'm working on the submodule for supporting v2.

bharathkkb commented 1 year ago

fixed by https://github.com/terraform-google-modules/terraform-google-org-policy/pull/58. Thanks @prabhu34!