💡
deploydocs
  • Introduction
  • Going Live: Checklist : CARE
  • CARE: CLOUD DEPLOYMENT OVERVIEW
    • Cloud Infrastructure Diagram
    • Google Cloud deployment
      • Set up the network
      • Set up Databases
      • Create storage buckets
      • Create a GKE cluster
      • Configure GKE workloads
      • Post setup
    • Azure Deployment
    • AWS Deployment
  • CARE: Deploying Technology
  • Tech Overview: CARE
  • Tech Prerequisites: CARE
  • Setting up the server locally
  • Setting up AWS EKS
  • Setting up AWS RDS
  • Build and push docker image
  • Production Environment Variables
  • Deploying the projects on EKS
  • Requirements: AWS
  • Tech Infrastructure: CARE
  • Steps to Deploy: CARE
  • CARE: Deploying Operations
  • Operationalizing CARE in the field
  • Setting up the War-Room
  • Deployment Timeline
  • Ambulance Management System
    • SuperHero Network
  • TeleICU Tech Deployment
    • Setup Nursing Station Desktop
    • BPL Monitor Network Configuration
Powered by GitBook
On this page
  • Create 2 storage buckets
  • Setup access keys
  • Configure CORS:

Was this helpful?

Export as PDF
  1. CARE: CLOUD DEPLOYMENT OVERVIEW
  2. Google Cloud deployment

Create storage buckets

PreviousSet up DatabasesNextCreate a GKE cluster

Last updated 1 year ago

Was this helpful?

Create 2 storage buckets

GoTo: Cloud Storage > buckets > create ()

  1. Create a publicly accessible bucket for facility images:

    1. Name: <prefix>-care-facility

    2. Location type: Region

    3. Location: asia-south1 (Mumbai)

    4. Default storage class: Standard

    5. Public access prevention: Off

    6. Access control: Uniform

    7. Protection tools: None

  2. Create a private bucket for patient data.

    1. Name: <prefix>-care-patient-data

    2. Location type: Region

    3. Location: asia-south1 (Mumbai)

    4. Default storage class: Standard

    5. Public access prevention: On

    6. Access control: Uniform

    7. Protection tools: Retention policy: 7 days

Setup access keys

  1. Under Access keys for service accounts, click on Create a key for a service account

  2. Click create a new service account:

    1. Name: care-bucket-access

    2. Click “Create and continue”

    3. Role: Storage Object Admin under Cloud Storage

    4. Click "Continue" then "Done"

  3. Select care-bucket-access and click on create key

  4. Note down the Access key and Secret for later

Configure CORS:

  1. Activate Cloud Shell

  2. Create a file bucket-config.json with the following contents

[
   {
     "origin": ["https://care.ohc.network", "https://care.coronasafe.in"],
     "method": ["GET", "PUT"],
     "responseHeader": ["*"],
     "maxAgeSeconds": 3600
   }
]
  1. Replace the origin with your deployed frontend URLs

  2. Apply config for buckets using gcloud cli

gcloud storage buckets update gs://<prefix>-care-facility --cors-file=bucket-config.json
gcloud storage buckets update gs://<prefix>-care-patient-data --cors-file=bucket-config.json

Go to Cloud Storage > Settings > Interoperability ()

link
link