a porteurbars template for generating google pubsub triggered google cloud functions, bootstrapped for travis integration for continuous git push based deployments
The following should prompt you for the following values
$ porteurbars meetup/pubsub-cloud-function
Name | Default value | Description |
---|---|---|
GCP_PROJECT | ai-blt | name of google cloud platform project |
STAGE_BUCKET | hello-pubsub | name of google storage bucket to store staged coded under |
FUNCTION_NAME | helloPubsub | name of exported function to deploy, this should be unique per project |
FUNCTION_MEMORY | 128MB | amount of memory to allocation in deployments |
PUBSUB_TOPIC | hello-pubsub | name of gcp pubsub topic to subscribe to |
GCP_PROJECT
Name must start with a letter followed by up to 47 letters, numbers, or hyphens, and cannot end with a hyphen.
FUNCTION_MEMORY
values must be one of 28MB
, 256MB
, 512MB
, 1024MB
and 2048MB
.
PUBSUB_TOPIC
must follow the resource-name
rules defined here
STAGE_BUCKET
must following the rules defined here
This template provides a default test harness. You can run tests with the following
$ make test
$ porteurbars meetup/pubsub-cloud-function && make deploy