Viewing docs for Google Cloud v9.18.0
published on Wednesday, Apr 1, 2026 by Pulumi
published on Wednesday, Apr 1, 2026 by Pulumi
Google Cloud Functions
Viewing docs for Google Cloud v9.18.0
published on Wednesday, Apr 1, 2026 by Pulumi
published on Wednesday, Apr 1, 2026 by Pulumi
An example of deploying an HTTP Google Cloud Function endpoint using TypeScript.
Prerequisites
- Ensure you have the latest Node.js and NPM
- Install the Pulumi CLI
- Configure Pulumi to access your GCP account
Running the App
Restore NPM dependencies:
$ npm installCreate a new stack:
$ pulumi stack init gcp-fnConfigure your GCP project and region:
$ pulumi config set gcp:project <projectname> $ pulumi config set gcp:region <region>Run
pulumi upto preview and deploy changes:$ pulumi up Previewing changes: ... Performing changes: ... info: 6 changes performed: + 6 resources created Update duration: 39.65130324sCheck the deployed function endpoint:
$ pulumi stack output url https://us-central1-pulumi-development.cloudfunctions.net/greeting-function-7f95447 $ curl "$(pulumi stack output url)" Greetings from Google Cloud Functions!Clean up your GCP and Pulumi resources:
$ pulumi destroy ... $ pulumi stack rm ...
Viewing docs for Google Cloud v9.18.0
published on Wednesday, Apr 1, 2026 by Pulumi
published on Wednesday, Apr 1, 2026 by Pulumi
