command
module
Version:
v0.0.0-...-2f3ac94
Opens a new window with list of versions in this module.
Published: Apr 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Google Cloud Functions in Go deployed with Go
This example deploys a Google Cloud Function implemented in Go. Pulumi program is also implemented in Go.
Deploying the App
To deploy your infrastructure, follow the below steps.
Prerequisites
- Install Pulumi
- Configure Pulumi for GCP
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 up
will 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
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.