AutoML Tables offers you some control over where the resources for your project (your datasets and models) are stored and processed. In particular, you can configure AutoML Tables to store your data at rest and perform machine learning processing only in the European Union.
By default AutoML Tables stores and processes resources in a Global location, which means that AutoML Tables doesn't guarantee that your resources will remain within a particular location or region. If you choose the European Union location, Google will store your data and process it only in the European Union. You and your users can access the data from any location.
Setting the location in the Google Cloud console
When you create a new dataset, you specify the location for that dataset using the drop-down list just below the text box where you enter the dataset name. Models trained using that dataset are created in the same location.
The listing pages for datasets and models each have a Location drop-down list you can use to show the resources in the selected location.
Setting the location using the API
AutoML Tables supports both a global API endpoint (automl.googleapis.com
)
and a European Union endpoint (eu-automl.googleapis.com
). To store and process
your data in the European Union only, use the URI eu-automl.googleapis.com
in
place of automl.googleapis.com
for your REST API calls.
When using the AutoML API, you identify resources using their full
resource name, which includes their location as well as their unique ID. For
example, the resource name for a dataset has the format
projects/{project-id}/locations/{location}/datasets/{dataset-id}
.
For resources stored in the global location, replace the {location}
variable
with the value us-central1
. For resources stored in the European Union
location, replace the {location}
variable with the value eu
and use the
eu-automl.googleapis.com
endpoint.
Setting the location using client libraries
The AutoML client libraries accesses the global API endpoint
(automl.googleapis.com
) by default. To store and process your data in the
European Union only, you need to explicitly set the endpoint. The code samples
below show how to configure this setting.
Java
Node.js
To authenticate to AutoML Tables, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
To authenticate to AutoML Tables, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Bucket requirements
Some AutoML Tables tasks, such as importing data from your local
computer, use a Cloud Storage bucket. The requirements for the bucket
differ between the Global (us-central1
) and European Union (eu
) locations.
Bucket requirements for us-central1
- Location type:
Region
- Location:
us-central1
- Storage class:
Standard
(sometimes displayed in the Cloud Storage browser asRegional
)
Bucket requirements for eu
- Location type:
Multi-region
- Location:
eu
- Storage class:
Standard
(sometimes displayed in the Cloud Storage browser asMulti-Regional
)