mg52 / gcpfunction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GCP Functions with Terraform

GCP function demo with terraform.

Setup

gcloud auth application-default login

export GOOGLE_CLOUD_PROJECT=PROJECT_ID

terraform init

terraform apply

Local Run

export FUNCTION_TARGET=router

cd cmd
go run main.go

Tutorial: https://cloud.google.com/functions/docs/create-deploy-http-go

About


Languages

Language:Go 64.7%Language:HCL 35.3%