https://pulumi.com logo
#pulumi-deployments
Title
# pulumi-deployments
s

straight-fireman-55591

06/27/2023, 11:02 AM
hi, I wonder if someone can help me. I'm trying to login to GCP with SA but getting bellow error. What I do wrong?
Copy code
pulumi  version
v3.73.0
export GOOGLE_APPLICATION_CREDENTIALS=$(cat key.json)
echo $GOOGLE_APPLICATION_CREDENTIALS
echo $GOOGLE_APPLICATION_CREDENTIALS | jq .
gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
pulumi config set gcp:project <redacted>
Copy code
error: missing google credentials: unable to find gcp credentials: google: error getting credentials using GOOGLE_APPLICATION_CREDENTIALS environment variable: open {
  "type": "service_account",
  "project_id": "redacted",
  "private_key_id": "redacted",
  "private_key": "-----BEGIN PRIVATE KEY-----\redacted\n-----END PRIVATE KEY-----\n",
  "client_email": "redacted@redacted",
  "client_id": "redacted",
  "auth_uri": "redacted",
  "token_uri": "redacted",
  "auth_provider_x509_cert_url": "redacted",
  "client_x509_cert_url": "redacted",
  "universe_domain": "redacted"
}: file name too long
pulumi config set --secret gcp:credentials ./key.json
Copy code
error: missing google credentials: unable to find gcp credentials: google: error getting credentials using GOOGLE_APPLICATION_CREDENTIALS environment variable: open {
  "type": "service_account",
  "project_id": "redacted",
  "private_key_id": "redacted",
  "private_key": "-----BEGIN PRIVATE KEY-----\redacted\n-----END PRIVATE KEY-----\n",
  "client_email": "redacted@redacted",
  "client_id": "redacted",
  "auth_uri": "redacted",
  "token_uri": "redacted",
  "auth_provider_x509_cert_url": "redacted",
  "client_x509_cert_url": "redacted",
  "universe_domain": "redacted"
}: file name too long
5 Views