---
title: "Google Cloud Functions in Python and Go deployed"
description: "Basic example of a serverless Python and Go GCP functions (in Python)"
url: "https://www.pulumi.com/dev/examples/gcp-py-serverless-raw/"
image: "https://www.pulumi.com/assets/og/dev/examples/gcp-py-serverless-raw.png"
---

# Google Cloud Functions in Python and Go deployed

Basic example of a serverless Python and Go GCP functions (in Python)

- Source on GitHub: https://github.com/pulumi/examples/tree/master/gcp-py-serverless-raw
- Deploy with Pulumi: https://app.pulumi.com/new?template=https%3A%2F%2Fgithub.com%2Fpulumi%2Fexamples%2Ftree%2Fmaster%2Fgcp-py-serverless-raw

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/gcp-py-serverless-raw) repo. Pull down just this directory to follow along:

```bash
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set gcp-py-serverless-raw
cd pulumi-examples/gcp-py-serverless-raw
```

This example deploys two Google Cloud Functions. "Hello World" functions are implemented in Python and Go. Pulumi program is implemented in Python.

```bash
# Create and configure a new stack
$ pulumi stack init testing
$ pulumi config set gcp:project <your-gcp-project>
$ pulumi config set gcp:region <gcp-region>

# Preview and run the deployment
$ pulumi up
Previewing changes:
...
Performing changes:
...
info: 6 changes performed:
    + 6 resources created
Update duration: 1m14s

# Test it out
$ curl $(pulumi stack output python_endpoint)
"Hello World!"
$ curl $(pulumi stack output go_endpoint)
"Hello World!"

# Remove the app
$ pulumi destroy
```
