Set up a service perimeter by using VPC Service Controls
Learn how to set up a service perimeter using VPC Service Controls in the Google Cloud console.
Before you begin
We recommend that you check whether you have the required Identity and Access Management (IAM) roles for administering VPC Service Controls.
If you do not have the required IAM roles, see Manage access to projects, folders, and organizations for information about how to grant IAM roles.
Set up a VPC Service Controls perimeter
In the following sections, you specify the perimeter details, add projects and services to protect, and create the perimeter.
Add the VPC Service Controls perimeter details
In the Google Cloud console, go to the VPC Service Controls page.
To create a new perimeter by using the default access policy, select your organization from the project selector menu.
On the VPC Service Controls page, click New Perimeter.
On the New VPC Service Perimeter page, in the Perimeter Name box, type
perimeter_storage_services
.In Perimeter Type and Config Type sections, retain the default settings.
Add projects to the perimeter
- To add projects to the perimeter, from the New VPC Service Perimeter navigation menu, click Projects.
- Click Add Projects.
In the Add Projects dialog, select the projects that you want to add to the perimeter and then click Add Projects.
Click Done.
Secure the BigQuery and Cloud Storage services within the perimeter
- From the New VPC Service Perimeter navigation menu, click Restricted services.
- Click Add Services.
In the Specify services to restrict dialog, select the checkboxes of the BigQuery and Cloud Storage APIs.
To locate the services, you can use the filter query.
Click Add 2 Services.
To create the perimeter, from the New VPC Service Perimeter navigation menu, click Create perimeter.
You just created a perimeter! You can see your perimeter listed on the VPC Service Controls page.The perimeter might take up to 30 minutes to propagate and take effect. When the changes have propagated, access to the BigQuery and Cloud Storage services is limited to the projects you added to the perimeter.
Additionally, the Google Cloud console interface for the BigQuery and Cloud Storage services that you protected with the perimeter might become partially or fully inaccessible.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
In the Google Cloud console, go to the VPC Service Controls page.
On the VPC Service Controls page, in the row corresponding to the perimeter that you created, click
Delete.In the dialog box, click Delete to confirm that you want to delete the perimeter.
What's next
- Learn about managing existing service perimeters.
- Learn about the limitations of using specific services with VPC Service Controls.