Skip to content

Instantly share code, notes, and snippets.

@feloy
Created January 19, 2019 11:07
Show Gist options
  • Save feloy/d181fbf3ceb210bb5cf5c677cccafe1b to your computer and use it in GitHub Desktop.
Save feloy/d181fbf3ceb210bb5cf5c677cccafe1b to your computer and use it in GitHub Desktop.
#!/bin/bash
gcloud beta functions deploy newScore \
--entry-point OnNewScore \
--memory 256MB \
--region us-central1 \
--runtime go111 \
--trigger-event providers/cloud.firestore/eventTypes/document.create \
--trigger-resource "projects/<your-project-id>/databases/(default)/documents/Score/{id}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment