a porteurbars template for generating http(s) 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/http-cloud-function
Name | Default value | Description |
---|---|---|
GCP_PROJECT | ai-blt | name of google cloud platform project |
STAGE_BUCKET | hello-http | name of google storage bucket to store staged coded under |
FUNCTION_NAME | helloHttp | name of exported function to deploy, this should be unique per project |
FUNCTION_MEMORY | 128MB | amount of memory to allocation in deployments |
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
.
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/http-cloud-function && make deploy