Latch allows you to mount your own GCP Buckets and use them the same as you would any data on Latch.
Go to the 'Data Tab' and click the 'Mount GCP Bucket' button.
If you have not connected any GCP projects to Latch, click the 'Add Project' button.
Click on the 'Authorize Project Access' button and go through the authentication flow with Google.
Select the project from the dropdown that contains the bucket you want to mount.
You will need to authorize Latch to list the buckets in your project and give 'Storage Admin' permission to the bucket that you want to mount.
storage.buckets.list
permission on the project level.Storage Admin
on the bucket level.To give Latch 'storage.buckets.list' permission, go to the 'Create Custom Role' page in your project.
Bucket Lister
.storage.buckets.list
. This will permit Latch to list buckets in your project which is required when mounting your bucket. After you have mounted the bucket, you can remove this permission.Go to the 'IAM & Admin' page in your project.
Click on 'Add' and enter the email address 'latch-data@latchbio.iam.gserviceaccount.com' and select the role 'Bucket Lister' that you created.
Click on 'Save'.
To give Latch 'Storage Admin' permission on the bucket level, you need to go to the 'Storage Browser' page in your project.
Grant Access
.latch-data@latchbio.iam.gserviceaccount.com
and select the role Storage Admin
.Click on 'Verify' on Latch Console to verify that Latch has the required permissions in your project.
Back on the main page, select your project in the list.
You need to enable versioning for your bucket before you can mount it.
Select the bucket you want to mount and click 'Mount/Add Link'.