Create storage buckets
Create 2 storage buckets
GoTo: Cloud Storage > buckets > create (link)
Create a publicly accessible bucket for facility images:
Name: <prefix>-care-facility
Location type: Region
Location: asia-south1 (Mumbai)
Default storage class: Standard
Public access prevention: Off
Access control: Uniform
Protection tools: None
Create a private bucket for patient data.
Name: <prefix>-care-patient-data
Location type: Region
Location: asia-south1 (Mumbai)
Default storage class: Standard
Public access prevention: On
Access control: Uniform
Protection tools: Retention policy: 7 days
Setup access keys
Go to Cloud Storage > Settings > Interoperability (link)
Under Access keys for service accounts, click on Create a key for a service account
Click create a new service account:
Name: care-bucket-access
Click “Create and continue”
Role: Storage Object Admin under Cloud Storage
Click "Continue" then "Done"
Select care-bucket-access and click on create key
Note down the Access key and Secret for later
Configure CORS:
Activate Cloud Shell
Create a file bucket-config.json with the following contents
Replace the origin with your deployed frontend URLs
Apply config for buckets using gcloud cli
Last updated