Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 997 Bytes

upgrading_to_v3.0.md

File metadata and controls

44 lines (35 loc) · 997 Bytes

Upgrading to v3.0

The v3.0 release of org-policy is a backwards incompatible release.

Migration Instructions

In previous versions of this module the resource hirerarchy node was not defined explicitly which caused problems when the module is combined with project/folder creation. The policy_for variable was introduced to address that issue.

Update for project policies

 module "project_policy" {
   source  = "terraform-google-modules/org-policy/google"
-  version = "~> 2.0"
+  version = "~> 3.0"

+  policy_for = "project"
   # ...
 }

Update for folder policies

 module "folder_policy" {
   source  = "terraform-google-modules/org-policy/google"
-  version = "~> 2.0"
+  version = "~> 3.0"

+  policy_for = "folder"
   # ...
 }

Update for organization policies

 module "org_policy" {
   source  = "terraform-google-modules/org-policy/google"
-  version = "~> 2.0"
+  version = "~> 3.0"

+  policy_for = "organization"
   # ...
 }