colossal-quill-8119
07/20/2023, 5:21 PMgcloud auth configure-docker <http://asia-south2-docker.pkg.dev|asia-south2-docker.pkg.dev>
which does run successfully. But after that pulumi crashes with following error You do not currently have an active account selected. See <https://cloud.google.com/sdk/docs/authorizing> for more information.
. I’m using Workload Identity Federation and the service acc has all the permissions it should.many-telephone-49025
07/20/2023, 5:22 PMpulumi about
colossal-quill-8119
07/20/2023, 5:23 PMCLI
Version 3.75.0
Go Version go1.20.6
Go Compiler gc
Plugins
NAME VERSION
docker 4.3.0
gcp 6.56.0
nodejs unknown
Host
OS darwin
Version 13.4.1
Arch arm64
This project is written in nodejs: executable='/Users/debkanchan/.nvm/versions/node/v18.12.1/bin/node' version='v18.12.1'
Backend
Name <http://pulumi.com|pulumi.com>
URL <https://app.pulumi.com/DebkanchanSamadder>
User DebkanchanSamadder
Organizations DebkanchanSamadder, ride
Dependencies:
NAME VERSION
@types/node 16.18.32
@pulumi/docker 4.3.0
@pulumi/gcp 6.56.0
@pulumi/pulumi 3.68.0
Pulumi locates its logs in /var/folders/7d/cln6swv17mq5fmjkpd6z6hnr0000gn/T/ by default
warning: Failed to get information about the current stack: No current stack
salmon-account-74572
07/20/2023, 5:37 PMdocker-credential-gcloud
credential helper (the default), then you need to make sure you run gcloud auth login
before running a Pulumi operation. If you are using the docker-crdedential-gcr
credential helper, then you need to run gcloud auth application-default login
before running a Pulumi operation. This isn’t something that we can work around in Pulumi code, AFAIK.gcloud auth login
and gcloud auth application-default login
.billowy-army-68599
colossal-quill-8119
07/20/2023, 5:43 PMgcloud auth login
and gcloud auth application-default login
as a Pre-run command emits a browser link to loginsalmon-account-74572
07/20/2023, 5:45 PMcolossal-quill-8119
07/20/2023, 5:46 PMsalmon-account-74572
07/20/2023, 5:48 PMcolossal-quill-8119
07/20/2023, 5:49 PMsalmon-account-74572
07/20/2023, 8:19 PMcolossal-quill-8119
07/25/2023, 7:22 AMsalmon-account-74572
07/25/2023, 3:20 PMcolossal-quill-8119
07/25/2023, 4:21 PMsalmon-account-74572
07/26/2023, 3:31 PMgcloud
being able to find credentials where it expects credentials). One question you had in the other thread was in regard to running gcloud auth activate-service-account
. One of our engineers had this suggestion:
1. Set the contents of key-file
as a secret environment variable in the Deployment configuration
2. Have a pre-run command that echos the environment variable into a file on disk
3. Run the gcloud auth activate-service-account
command referencing the file that was written to disk
Would you mind trying that and seeing if it helps the situation at all? Thanks!colossal-quill-8119
07/26/2023, 3:36 PMsalmon-account-74572
07/26/2023, 3:45 PMbland-dog-47600
07/27/2023, 9:00 PMsalmon-account-74572
07/27/2023, 9:25 PMcolossal-quill-8119
07/29/2023, 10:36 AMgcp:cloudrun:Service (service):
245
error: 1 error occurred:
246
* updating urn:pulumi:dev::api-gateway::gcp:cloudrun/service:Service::service: 1 error occurred:
247
* Error updating Service "locations/asia-east1/namespaces/ride-app-dev-2/services/api-gateway": Put "<https://asia-east1-run.googleapis.com/apis/serving.knative.dev/v1/namespaces/ride-app-dev-2/services/api-gateway?alt=json>": oauth2/google: unable to generate access token: Post "<https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/cloud-run-service-manager@ride-app-dev-2.iam.gserviceaccount.com:generateAccessToken>": oauth2/google: status code 400: {"error":"invalid_target","error_description":"The target service indicated by the \"audience\" parameters is invalid. This might either be because the pool or provider is disabled or deleted or because it doesn't exist."}
bland-dog-47600
07/29/2023, 5:41 PMcolossal-quill-8119
07/29/2023, 7:08 PMbland-dog-47600
07/29/2023, 7:31 PMcolossal-quill-8119
07/29/2023, 7:35 PMsalmon-account-74572
07/31/2023, 2:27 PM