Skip to content

Commit

Permalink
Decrease the iam access boundary in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zli82016 committed Oct 20, 2023
1 parent 340c76d commit ee320c3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ resource "google_access_context_manager_access_level" "test-access" {
}
resource "google_access_context_manager_access_policy" "access-policy" {
parent = "organizations/${google_project.project.org_id}"
parent = "organizations/${google_project.project.project_id}"
title = "my policy"
}
Expand All @@ -114,7 +114,7 @@ resource "google_iam_access_boundary_policy" "example" {
available_permissions = ["*"]
availability_condition {
title = "Access level expr"
expression = "request.matchAccessLevels('${google_project.project.org_id}', ['${google_access_context_manager_access_level.test-access.name}'])"
expression = "request.matchAccessLevels('${google_project.project.project_id}', ['${google_access_context_manager_access_level.test-access.name}'])"
}
}
}
Expand Down Expand Up @@ -153,7 +153,7 @@ resource "google_access_context_manager_access_level" "test-access" {
}
resource "google_access_context_manager_access_policy" "access-policy" {
parent = "organizations/${google_project.project.org_id}"
parent = "organizations/${google_project.project.project_id}"
title = "my policy"
}
Expand All @@ -167,7 +167,7 @@ resource "google_iam_access_boundary_policy" "example" {
available_resource = "*"
available_permissions = ["*"]
availability_condition {
expression = "request.matchAccessLevels('${google_project.project.org_id}', ['${google_access_context_manager_access_level.test-access.name}'])"
expression = "request.matchAccessLevels('${google_project.project.project_id}', ['${google_access_context_manager_access_level.test-access.name}'])"
}
}
}
Expand Down

0 comments on commit ee320c3

Please sign in to comment.