gcp-go-functions-raw

command module
v0.0.0-...-2f3ac94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Deploy Deploy

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
  1. Install Pulumi
  2. Configure Pulumi for GCP
Steps
  1. Create a new stack:

    $ pulumi stack init dev
    
  2. Set the GCP project and region:

    pulumi config set gcp:project <gcp-project>
    pulumi config set gcp:region <gcp-region>
    
  3. Execute the pulumi program to deploy our function:

    pulumi up
    
  4. Test our function by curl-ing the trigger URL.

    curl $(pulumi stack output function)
    # "Hello World!"
    
  5. From there, feel free to experiment. Simply making edits and running pulumi up will incrementally update your function.

  6. Once you've finished experimenting, tear down your stack's resources by destroying and removing it:

    pulumi destroy --yes
    pulumi stack rm --yes
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL