-
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 support for AccessContextManager ServicePerimeter (#1070)
Merged PR #1070.
- Loading branch information
1 parent
311076a
commit 5d310bc
Showing
6 changed files
with
384 additions
and
2 deletions.
There are no files selected for viewing
Submodule terraform
updated
from 8623db to 188ef9
Submodule terraform-beta
updated
from 52bfa4 to eb5a48
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
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
29 changes: 29 additions & 0 deletions
29
templates/terraform/examples/access_context_manager_service_perimeter_basic.tf.erb
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,29 @@ | ||
resource "google_access_context_manager_service_perimeter" "<%= ctx[:primary_resource_id] %>" { | ||
parent = "accessPolicies/${google_access_context_manager_access_policy.test-access.name}" | ||
name = "accessPolicies/${google_access_context_manager_access_policy.test-access.name}/servicePerimeters/<%= ctx[:vars]['service_perimeter_name'] %>" | ||
title = "<%= ctx[:vars]['service_perimeter_name'] %>" | ||
status { | ||
restricted_services = ["*"] | ||
} | ||
} | ||
|
||
resource "google_access_context_manager_access_level" "access-level" { | ||
parent = "accessPolicies/${google_access_context_manager_access_policy.test-access.name}" | ||
name = "accessPolicies/${google_access_context_manager_access_policy.test-access.name}/accessLevels/<%= ctx[:vars]['access_level_name'] %>" | ||
title = "<%= ctx[:vars]['access_level_name'] %>" | ||
basic { | ||
conditions { | ||
device_policy { | ||
require_screen_lock = false | ||
os_constraints { | ||
os_type = "IOS" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
resource "google_access_context_manager_access_policy" "access-policy" { | ||
parent = "organizations/123456789" | ||
title = "my policy" | ||
} |
Oops, something went wrong.