Google Cloud Functions in Python and Go deployed
Basic example of a serverless Python and Go GCP functions (in Python)
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set gcp-py-serverless-rawcd pulumi-examples/gcp-py-serverless-rawThis example deploys two Google Cloud Functions. “Hello World” functions are implemented in Python and Go. Pulumi program is implemented in Python.
# Create and configure a new stackpulumi stack init testingpulumi config set gcp:project <your-gcp-project>pulumi config set gcp:region <gcp-region>
# Preview and run the deploymentpulumi upPreviewing changes:...Performing changes:...info: 6 changes performed: + 6 resources createdUpdate duration: 1m14s
# Test it outcurl $(pulumi stack output python_endpoint)"Hello World!"curl $(pulumi stack output go_endpoint)"Hello World!"
# Remove the apppulumi destroyRelated
TemplateGoogle Cloud
Google Cloud Serverless Application
TemplateAWS