Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
Google Cloud Functions in Python deployed with Go
This example deploys a Google Cloud Function implemented in Python. Pulumi program is implemented in Go.
Deploying the App
To deploy your infrastructure, follow the below steps.
Prerequisites
Steps
- Create a new stack: - $ pulumi stack init dev
- Set the GCP project and region: - pulumi config set gcp:project <gcp-project> pulumi config set gcp:region <gcp-region>
- Execute the pulumi program to deploy our function: - pulumi up
- Test our function by curl-ing the trigger URL. - curl $(pulumi stack output function) # "Hello World!"
- From there, feel free to experiment. Simply making edits and running - pulumi upwill incrementally update your function.
- Once you’ve finished experimenting, tear down your stack’s resources by destroying and removing it: - pulumi destroy --yes pulumi stack rm --yes