https://pulumi.com logo
#general
Title
# general
e

enough-ability-20396

11/12/2019, 5:02 AM
Hi! I inherited a GCP project setup done via Pulumi. When I run
pulum preview
or
pulumi up
commands, I see the following error log. Any ideas on what might be going on?
Copy code
$ pulumi preview
Previewing update (solvvy/<redacted>):

     Type                 Name                       Plan     Info
     pulumi:pulumi:Stack  <redacted>           1   error

Diagnostics:
  pulumi:pulumi:Stack (solvvy-ml-main):
    error: Running program '/Users/amey/work/code/infrastructure-live/gcp-projects/<redacted>/project' failed with an unhandled exception:
    Error: invocation of gcp:organizations/getActiveFolder:getActiveFolder returned an error: invoking gcp:organizations/getActiveFolder:getActiveFolder: Folder not found
        at monitor.invoke (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/@pulumi/pulumi/runtime/invoke.js:74:33)
        at Object.onReceiveStatus (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/grpc/src/client_interceptors.js:1205:9)
        at InterceptingListener._callNext (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/grpc/src/client_interceptors.js:568:42)
        at InterceptingListener.onReceiveStatus (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/grpc/src/client_interceptors.js:618:8)
        at callback (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/grpc/src/client_interceptors.js:845:24)
        at Function.module.exports.loopWhile (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/deasync/index.js:71:23)
        at promiseResult (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/@pulumi/pulumi/utils.js:70:13)
        at Object.liftProperties (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/@pulumi/pulumi/utils.js:102:19)
        at Object.getActiveFolder (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/node_modules/@pulumi/organizations/getActiveFolder.ts:37:25)
        at Object.<anonymous> (/Users/amey/work/code/infrastructure-live/gcp-projects/solvvy-ml/project/core-project.ts:9:21)

Permalink: <https://app.pulumi.com/solvvy/><redacted>/<redacted>/previews/a98b9966-82b6-4be3-9cf3-4d1b3d3b937c
FWIW I have
owner
access to the underlying GCP project and I am able to run
pulumi
commands on other stacks in the same project.
@glamorous-printer-66548 ^ 😉
g

glamorous-printer-66548

11/12/2019, 5:27 AM
good evening amey 😅
can you assign yourself the folder admin role on the GCP organization (top level)?
e

enough-ability-20396

11/12/2019, 5:53 PM
@glamorous-printer-66548 I now have the folder admin role on the GCP org.
g

glamorous-printer-66548

11/12/2019, 6:22 PM
so does it work now or what?
e

enough-ability-20396

11/13/2019, 7:50 PM
yeah it works with the additional permissions, thanks!