Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for VPC Service Controls (VPC SC) Secure Data Exchange #3064

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-beta/resource_access_context_manager_service_perimeter.go

Large diffs are not rendered by default.

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
1,720 changes: 1,686 additions & 34 deletions google-beta/resource_access_context_manager_service_perimeters.go

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion google-beta/resource_dataproc_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

dataproc "google.golang.org/api/dataproc/v1beta2"
"google.golang.org/api/googleapi"

dataproc "google.golang.org/api/dataproc/v1beta2"
)

func TestDataprocExtractInitTimeout(t *testing.T) {
Expand Down
Loading