wormhole/event_database/initialize_db
justinschuldt d95e82b00b cloud functions - docs update 2022-03-17 18:25:48 -05:00
..
README.md cloud functions - docs update 2022-03-17 18:25:48 -05:00
database.go cloud function housekeeping 2022-03-10 14:26:41 -06:00
database_setup.go cloud function housekeeping 2022-03-10 14:26:41 -06:00
go.mod cloud function housekeeping 2022-03-10 14:26:41 -06:00
go.sum cloud function housekeeping 2022-03-10 14:26:41 -06:00

README.md

Initializing a cloud BigTable instance

Once you've created a BigTable instance and a Service Account key, these Go scripts can create the table and column families to save event data.

Pass your BigTable connection info via args:

  • the Google Cloud projectID
  • BigTable instance name
  • the path to a GCP Service Account with appropriate permissions

Invoke the script with the DB config options and -setupDB to create the table and column families, if they do not already exist. If they do already exists when the script runs, it will do nothing.

go run . \
  -project your-GCP-projectID \
  -instance your-BigTable-instance-name \
  -keyFilePath ./service-account-key.json \
  -setupDB