GCP Storage Integration

GCP Storage Integration

1. Setting IAM Permissions

In your bucket, go to the Permissions tab and click on Grant access.

In New principals, set isahit-lab-access@isahit-lab.iam.gserviceaccount.com

In Role, set Storage Object Viewer

image

Save the permission.

2. Setting up CORS

πŸ’‘

You cannot setup the CORS configuration from the Google Cloud Console (UI)

Create a JSON configuration file with the following command

echo '[{"origin":["https://lab.isahit.com", "https://work.isahit.com"],"method":["GET"],"responseHeader":["*"]}]' > cors-config.json

Apply the configuration to your bucket

gsutil cors set cors-config.json gs://<bucket-name>

Check that the configuration is correctly applied:

gsutil cors get gs://<bucket-name>
βœ…

Your bucket in now ready to be used in your isahit lab project

← Previous

Annotation Review

Next β†’

MFA

πŸ‘‰
https://www.isahit.com

Footer Social Icons

Β© isahit 2022