Skip to content

Commit

Permalink
Added base support for VPC SC Secure Data Exchange (#4509) (#8723)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 18, 2021
1 parent 0c3db9b commit c132a7f
Show file tree
Hide file tree
Showing 6 changed files with 4,125 additions and 96 deletions.
3 changes: 3 additions & 0 deletions .changelog/4509.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
accesscontextmanager: added support for ingress and egress policies to `google_access_context_manager_service_perimeter`
```
1,764 changes: 1,708 additions & 56 deletions google/resource_access_context_manager_service_perimeter.go

Large diffs are not rendered by default.

54 changes: 48 additions & 6 deletions google/resource_access_context_manager_service_perimeter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,55 @@ resource "google_access_context_manager_service_perimeter" "test-access" {
title = "%s"
perimeter_type = "PERIMETER_TYPE_REGULAR"
status {
restricted_services = ["bigquery.googleapis.com"]
access_levels = [google_access_context_manager_access_level.test-access.name]
restricted_services = ["bigquery.googleapis.com", "storage.googleapis.com"]
access_levels = [google_access_context_manager_access_level.test-access.name]
vpc_accessible_services {
enable_restriction = true
allowed_services = ["bigquery.googleapis.com"]
}
vpc_accessible_services {
enable_restriction = true
allowed_services = ["bigquery.googleapis.com", "storage.googleapis.com"]
}
ingress_policies {
ingress_from {
sources {
access_level = google_access_context_manager_access_level.test-access.name
}
identity_type = "ANY_IDENTITY"
}
ingress_to {
resources = [ "*" ]
operations {
service_name = "bigquery.googleapis.com"
method_selectors {
method = "BigQueryStorage.ReadRows"
}
method_selectors {
method = "TableService.ListTables"
}
method_selectors {
permission = "bigquery.jobs.get"
}
}
operations {
service_name = "storage.googleapis.com"
method_selectors {
method = "google.storage.objects.create"
}
}
}
}
egress_policies {
egress_from {
identity_type = "ANY_USER_ACCOUNT"
}
}
}
}
`, org, policyTitle, levelTitleName, levelTitleName, perimeterTitleName, perimeterTitleName)
Expand Down
Loading

0 comments on commit c132a7f

Please sign in to comment.