Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

a porteurbars template for pubsub google cloud functions

Notifications You must be signed in to change notification settings

meetuparchive/pubsub-cloud-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pubsub-cloud-function

a porteurbars template for generating google pubsub triggered google cloud functions, bootstrapped for travis integration for continuous git push based deployments

demo.gif

usage

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

testing

This template provides a default test harness. You can run tests with the following

$ make test

impress your friends

$ porteurbars meetup/pubsub-cloud-function && make deploy

About

a porteurbars template for pubsub google cloud functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published