This document shows you how to create and delete a repository in Dataform.
Before you begin
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project. Learn how to check if billing is enabled on a project.
-
Enable the BigQuery and Dataform APIs.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project. Learn how to check if billing is enabled on a project.
-
Enable the BigQuery and Dataform APIs.
Required roles
To get the permissions that you need to create and delete a repository,
ask your administrator to grant you the
Dataform Admin (roles/dataform.admin
) IAM role on repositories.
For more information about granting roles, see
Manage access.
You might also be able to get the required permissions through custom roles or other predefined roles.
Create a Dataform repository
To create a Dataform repository, follow these steps:
In the Google Cloud console, go to the Dataform page.
Click Create repository.
On the Create repository page, do the following:
In the Repository ID field, enter a unique ID.
IDs can only include numbers, letters, hyphens, and underscores.
In the Region drop-down list, select a Dataform region for storing the repository and its contents. Select the Dataform region nearest to your location.
For a list of available Dataform regions, see Locations. The repository region does not have to match the location of your BigQuery datasets.
In the
dataform.json
file, you can set the processing region where Dataform processes your code and stores the output of executions. The processing region has to match the location of your BigQuery datasets, but does not need to match the repository region. For more information, see Configure Dataform settings.Click Create.
Click Done.
Delete a Dataform repository
To delete a repository and all its contents, follow these steps:
In the Google Cloud console, go to the Dataform page.
By the repository that you want to delete, click the
More menu, and then select Delete.
In the Delete repository window, enter the name of the repository to confirm deletion.
Click Delete.
What's next
To learn how configure Dataform processing settings, see Configure Dataform settings.
To learn how to link a Dataform repository to a third-party Git provider, see Connect to a third-party Git repository.
To learn how to create a development workspace, see Create a workspace.