incalculable-evening-89052
01/23/2025, 11:07 PMterraform plan
and have changes to local code uploaded and run in TFC as a plan. This required a local backend TF file to say "use cloud" as the backend/remote state and of course credentials.
I have my Pulumi creds all sorted and can pulumi stack
to get meta on the stacks in Pulumi cloud. But I'm wonder if there is an equivalent way to use Pulumi cloud state for a pulumi preview
? I currently get You do not have permission to perform this operation.
But I have successfully done pulumi login
and the org name and everything seem correct.little-cartoon-10569
01/23/2025, 11:14 PM...use Pulumi cloud state for a pulumi previewThere is no way to not do this. Your state is in one place only. If it is in the Pulumi service, then the Pulumi service's copy of the state is what will be using during the preview.
little-cartoon-10569
01/23/2025, 11:15 PMpulumi stack ls
, does it show an asterisk beside the expected stack? One whose state is stored in the Pulumi service?incalculable-evening-89052
01/23/2025, 11:34 PMpulumi stack ls
lists all the different env stacks. I'm actually trying to run pulumi preview -s sbx
sbx being the stack.
pulumi stack ls
does not show any asterix. This is the line returned for the sbx stack
sbx 3 months ago 4 <https://app.pulumi.com/****/pulumi-aws-infra/sbx>
incalculable-evening-89052
01/23/2025, 11:36 PMincalculable-evening-89052
01/23/2025, 11:36 PMlittle-cartoon-10569
01/23/2025, 11:37 PMlittle-cartoon-10569
01/23/2025, 11:38 PMincalculable-evening-89052
01/23/2025, 11:42 PMpulumi org set-default ***
to my default org name. Maybe this is why the list shows the NAME in pulumi stack ls
as sbx
instead of org/sbx
?incalculable-evening-89052
01/23/2025, 11:43 PMpluumi login
and auth'd to my org in Pulumi Cloud.little-cartoon-10569
01/23/2025, 11:44 PMpulumi org set-default
(I predate that feature and never looked into it), so maybe what you've got is right. Let's see what we can find.little-cartoon-10569
01/23/2025, 11:44 PMpulumi stack select myorg/sbx
, replaing myorg with the actual org?incalculable-evening-89052
01/23/2025, 11:45 PMlittle-cartoon-10569
01/23/2025, 11:45 PMincalculable-evening-89052
01/23/2025, 11:46 PMls
I do have a star next to the sbx stack now. Hmmm, this seems a bit like TF workspaces.little-cartoon-10569
01/23/2025, 11:47 PMlittle-cartoon-10569
01/23/2025, 11:47 PMpulumi preview
now? Without the -s
?incalculable-evening-89052
01/23/2025, 11:50 PMlittle-cartoon-10569
01/23/2025, 11:51 PMincalculable-evening-89052
01/23/2025, 11:52 PMlittle-cartoon-10569
01/23/2025, 11:53 PM<https://app.pulumi.com/myorg/members>
then I think you have all the permissions required to fix this yourself. If you can't, you'll probably need help from project or org admin.little-cartoon-10569
01/23/2025, 11:53 PMincalculable-evening-89052
01/23/2025, 11:55 PM/members
but no option to edit or view. In Teams I can see that I'm not a member in some of the teams I probably should be.little-cartoon-10569
01/23/2025, 11:57 PMincalculable-evening-89052
01/23/2025, 11:57 PMincalculable-evening-89052
01/23/2025, 11:58 PM