I'm trying to run pulumi preview in gitlab CI and ...
# google-cloud
f
I'm trying to run pulumi preview in gitlab CI and getting
Copy code
[resource plugin command-1.0.1] installing
[resource plugin random-4.16.3] installing
[resource plugin gcp-7.37.0] installing
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:bnos-melech::BookPhone::pulumi:pulumi:Stack::BookPhone-bnos-melech]
warning: failed to get regions list: failed to list regions: googleapi: Error 403: Request had insufficient authentication scopes.
Details:
[
  {
    "@type": "<http://type.googleapis.com/google.rpc.ErrorInfo|type.googleapis.com/google.rpc.ErrorInfo>",
    "domain": "<http://googleapis.com|googleapis.com>",
    "metadatas": {
      "method": "compute.v1.RegionsService.List",
      "service": "<http://compute.googleapis.com|compute.googleapis.com>"
    },
    "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT"
  }
]
More details:
Reason: insufficientPermissions, Message: Insufficient Permission
Resources:
    13 unchanged
i
Can you try setting this env var `PULUMI_GCP_SKIP_REGION_VALIDATION`` to
true
?
f
I saw that on a github issue and tried it a long time ago and I think it solved it. I guess I should have reported that here
🙌 1
👍 1
Can you explain what exactly it does and why it's necessary?
i
Here's the github issue tracking this known bug https://github.com/pulumi/pulumi-gcp/issues/2121