Getting Started
Project Management
Workplace
Storage
Security
Plan usage & Billing
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
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
Next β
On this page