-
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.
Added a create test for privileged_access_manager_enttlement
- Loading branch information
1 parent
9bf29eb
commit 9834fe3
Showing
2 changed files
with
29 additions
and
1 deletion.
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/privileged_access_manager_entitlement_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,22 @@ | ||
resource "google_privileged_access_manager_entitlement" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
entitlement_id = "<%= ctx[:vars]['entitlement_id'] %>" | ||
location = "global" | ||
max_request_duration = "43200s" | ||
parent = "projects/itsvarsharma-pam-testing" | ||
requester_justification_config { | ||
unstructured{} | ||
} | ||
eligible_users { | ||
principals = ["serviceAccount:[email protected]"] | ||
} | ||
privileged_access{ | ||
gcp_iam_access{ | ||
role_bindings{ | ||
role = "roles/storage.admin" | ||
} | ||
resource = "//cloudresourcemanager.googleapis.com/projects/itsvarsharma-pam-testing" | ||
resource_type = "cloudresourcemanager.googleapis.com/Project" | ||
} | ||
} | ||
} |