-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Policy Parameters support for Managed constraints
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
mmv1/templates/terraform/examples/org_policy_policy_parameters_enforce.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
resource "google_org_policy_policy" "primary" { | ||
provider = google-beta | ||
name = "projects/${google_project.basic.name}/policies/iam.managed.disableServiceAccountKeyUpload" | ||
parent = "projects/${google_project.basic.name}" | ||
|
||
spec { | ||
rules { | ||
enforce = "FALSE" | ||
parameters { | ||
"allowAll" : true | ||
"allowedLocations" : ["us-east1", "us-west1"] | ||
} | ||
} | ||
} | ||
} | ||
|
||
resource "google_project" "basic" { | ||
project_id = "id" | ||
name = "id" | ||
org_id = "123456789" | ||
deletion_policy = "DELETE" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,3 +458,4 @@ func testAccCheckOrgPolicyPolicyDestroyProducer(t *testing.T) func(s *terraform. | |
return nil | ||
} | ||
} | ||
|