Issue I am very new to Google Cloud Platform, and I am currently making some Cloud Functions in Go. I am wondering if it is possible to for a Cloud Function that is a subscriber to a topic to ignore
Continue readingTag: google-cloud-platform
Connect to Google Cloud Datastore using dev_appserver.py & google.golang.org/appengine@v1.6.6
Issue As the title says. We have a legacy Go 1.11 AppEngine API that requires the dev_appserver.py to run. Simply, I want appengine.Main() & appengine.NewContext(r) to allow my application to point to my Cloud Datastore using my project-id, rather than
Continue readingMulti-stage build cannot run ENTRYPOINT from previous stage – no such file or directory
Issue I have the sub project that was made by golang. I want to build it into the image and upload to the Artifact Refistry to the google cloud. So I can use this image to create job and run
Continue readingError applying IAM policy for service account in Pulumi
Issue I am trying to create a service account and assign roles, and it fails. p, err := serviceaccount.NewAccount(ctx, "prom-frontend", &serviceaccount.AccountArgs{ AccountId: pulumi.String("prom-frontend"), DisplayName: pulumi.String("prom-frontend"), Project: pulumi.String(c.Project), }) if err != nil { return err } // create Project Iam
Continue readingService Account flow – 2 Legged Oauth Golang
Issue I want to get the Oauth token from the GCP client credentials. Reference package main import ( “fmt” “io/ioutil” “log” “golang.org/x/oauth2” “golang.org/x/oauth2/google” ) func main() { data, err := ioutil.ReadFile(“/Users/supreetdeshpande/Downloads/esp-rainmaker-97663-2f539a842d10.json”) if err != nil { log.Fatal(err) } conf, err
Continue readingDeploying Go app on Google Cloud 'missing go.sum entry'
Issue I’m trying to deploy a simple API on Google Cloud using Go 1.19 > go version go version go1.19.2 windows/amd64 I’m following this documentation as a template to deploy my app. But the deploy fails. Updating service [default]…failed. ERROR:
Continue readingUpdate BigQuery access policy using golang
Issue The documentation doesn’t mention any options: https://cloud.google.com/bigquery/docs/table-access-controls#update_an_access_policy Are there any ways to achieve this (similar to https://cloud.google.com/bigquery/docs/dataset-access-controls#granting_access_to_a_dataset)? Solution https://pkg.go.dev/cloud.google.com/go/bigquery#hdr-Querying – this works not only with SELECT statements. So running a "GRANT" through that solves my issue. Answered By –
Continue readingHow to limit Google Pub/Sub delivery attempts by forwarding to a dead-letter topic?
Issue I’m trying to configure a Pub/Sub subscription with a dead-letter topic (cf. https://cloud.google.com/pubsub/docs/dead-letter-topics) in order to limit the number of times the message gets redelivered when it gets nack’d. To this end, I’ve created the following example program: package
Continue readingGo: Compare "google.golang.org/genproto/googleapis/api/serviceusage/v1".State With String
Issue I’m learning Go at the moment, and one of my first projects is to get a list of GCP projects and determine which have the K8s API enabled, and then to acquire the version of the K8s clusters. I’ve
Continue readingdev_appserver.py BadArgumentError: app must not be empty
Issue Hey all, For context: I had this dev_appserver setup working late last year in 2021, and upon trying to set it up again, I’m getting odd errors. BadArgumentError: app must not be empty. I’ve solved quite a lot of
Continue reading