nice-butcher-64302
08/04/2023, 12:40 PM"err":{"type":"CommandError","message":"code: -2\n stdout: \n stderr: Command failed with exit code 255: pulumi stack init pippo --non-interactive\n │
│ Logging in using access token from PULUMI_ACCESS_TOKEN\nerror: could not create stack: [403] Only organization administrators can create stacks.\n err?: Error: Command failed with exit code 255: pulumi stack init pippo --non-interactive\nLogging │
│ in using access token from PULUMI_ACCESS_TOKEN\nerror: could not create stack: [403] Only organization administrators can create stacks.\n","stack":"CommandError: code: -2\n stdout: \n stderr: Command failed with exit code 255: pulumi stack ini │
│ t pippo --non-interactive\nLogging in using access token from PULUMI_ACCESS_TOKEN\nerror: could not create stack: [403] Only organization administrators can create stacks.\n err?: Error: Command failed with exit code 255: pulumi stack init pippo │
│ --non-interactive\nLogging in using access token from PULUMI_ACCESS_TOKEN\nerror: could not create stack: [403] Only organization administrators can create stacks.\n\n at Object.createCommandError (/app/pulumi-automation-server/node_modules/ │
│ @pulumi/automation/errors.ts:78:11)\n at Object.<anonymous> (/app/pulumi-automation-server/node_modules/@pulumi/automation/cmd.ts:79:15)\n at Generator.throw (<anonymous>)\n at rejected (/app/pulumi-automation-server/node_modules/@pulum │
│ i/pulumi/automation/cmd.js:19:65)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","commandResult":{"stdout":"","stderr":"Command failed with exit code 255: pulumi stack init pippo --non-interactive\nLogging in using a │
│ ccess token from PULUMI_ACCESS_TOKEN\nerror: could not create stack: [403] Only organization administrators can create stacks.","code":-2,"err":{"shortMessage":"Command failed with exit code 255: pulumi stack init pippo --non-interactive","comma │
│ nd":"pulumi stack init pippo --non-interactive","escapedCommand":"pulumi stack init pippo --non-interactive","exitCode":255,"stdout":"","stderr":"Logging in using access token from PULUMI_ACCESS_TOKEN\nerror: could not create stack: [403] Only o │
│ rganization administrators can create stacks.","failed":true,"timedOut":false,"isCanceled":false,"killed":false}},"name":"CommandError"},"msg":"Error during configuration request"}
What type of token do I need to create in order for the pulumi-automation to work?nice-butcher-64302
08/04/2023, 3:41 PMbillowy-army-68599
nice-butcher-64302
08/04/2023, 4:42 PMpulumi whoami -v
command I actually see the details I'm expecting,
User: <organization-name>
Organization: <organization-name>
BackendURL: <my-organization-backend-url>
nice-butcher-64302
08/04/2023, 4:42 PMbillowy-army-68599
billowy-army-68599
nice-butcher-64302
08/04/2023, 4:47 PMbillowy-army-68599
nice-butcher-64302
08/04/2023, 5:20 PMbillowy-army-68599
To give more details here, if instead of an organization tokenOrganization tokens only have member access. There is an upcoming change to allow org tokens with admin access, but not sure of its ETA
nice-butcher-64302
08/04/2023, 5:30 PMnice-butcher-64302
08/04/2023, 5:31 PMnice-butcher-64302
08/04/2023, 5:32 PMnice-butcher-64302
08/04/2023, 5:34 PMbillowy-army-68599