There are multiple parts to setting up a GCP integration in Encord:
Ensure all objects in the bucket use the Standard Storage class.
Log into your Google Cloud account and navigate to the GCP bucket you want to integrate with Encord.
Click Grant Access to add a service account for Encord, in the bucket’s PERMISSION tab.
Add ‘cord-cloud-storage-integrator@cord-ai-platform.iam.gserviceaccount.com’ as a New Principal and assign the following roles:
Storage Object Viewer
Storage Object Creator
Storage Object Creator
is needed for features that require write permissions, including re-encoding data and creating image sequences.
Paste the name of your GCP bucket into Step 2.1 of the integration in Encord.
A CORS configuration must be applied to the bucket you want to integrate with Encord. A CORS configuration enables Encord to request resources from the specified bucket.
Install Google’s Cloud CLI, and use the following gcloud
command in your command line or terminal to create a CORS configuration.
/path/to/you/cors.json
with the full path to your JSON CORS file. A sample JSON file is provided below.Click Create in Encord to finish creating the integration, after creating a CORS configuration.
The following JSON file can be used to set up the CORS configuration in Step 3 of your GCP integration.
For customers working with teams in India
Some users find it more reliable to access our Encord App deployment focused for Indian users. Instruct your team based in India to use http://app.in.encord.com and add that domain to your permitted CORS settings.
maxAgeSeconds
variable to adjust the number of seconds the browser is allowed to make requests before it must repeat the preflight request.Content-Type
of the resource in the response, as set by the responseHeader
.Consult the GCP documentation, to customize the file further.
Click the Run a test button on the integration to test the integration.
Paste the URL of any object in the bucket and click Check Encord can access this URL. If the test is successful a green tick appears next to Encord infrastructure and This machine.
See the Register cloud data page for guidance on how to register data stored in GCP.