billowy-nightfall-59212
04/13/2020, 8:55 PMgo
google cloud function
.
├── deployments
│ ├── Pulumi.dev.yaml
│ ├── Pulumi.yaml
│ ├── go.mod
│ ├── go.sum
│ └── main.go
├── function
│ ├── Anagram.go
│ ├── Anagram_test.go
│ ├── go.mod
│ └── pkg
│ └── anagram
│ ├── anagram.go
│ └── anagram_test.go
└── scripts
├── Anagram_System_test.go
└── systemtest.sh
gcp:cloudfunctions:Function (Anagram):
error: 1 error occurred:
* updating urn:pulumi:dev::magicleap::gcp:cloudfunctions/function:Function::Anagram: Error waiting for Updating CloudFunctions Function: Error code 3, message: Build failed: {"error":{"buildpackId":"google.go.build","buildpackVersion":"0.9.0","errorType":2,"canonicalCode":2,"errorId":"0eec69b1","errorMessage":"# serverless_function_app\n./main.go:24:43: undefined: function.Handler\n./main.go:26:44: undefined: function.Handler"},"stats":null}
gcloud
deploy is working
gcloud functions deploy \
--runtime=go113 \
--trigger-http \
--allow-unauthenticated \
--region=us-east1 \
IsItAnagram
Deploying function (may take a while - up to 2 minutes)...done.
availableMemoryMb: 256
entryPoint: IsItAnagram
lemon-agent-27707
04/13/2020, 10:18 PMbillowy-nightfall-59212
04/13/2020, 11:57 PMlemon-agent-27707
04/14/2020, 12:28 AMbillowy-nightfall-59212
04/14/2020, 12:39 AMtall-librarian-49374
04/14/2020, 5:34 AM