wooden-portugal-65883
10/27/2025, 2:52 PMstocky-restaurant-98004
10/27/2025, 3:02 PMorganization.stocky-restaurant-98004
10/27/2025, 3:03 PMwooden-portugal-65883
10/27/2025, 3:10 PMwooden-portugal-65883
10/27/2025, 3:11 PMwooden-portugal-65883
10/27/2025, 3:11 PMmodern-zebra-45309
10/27/2025, 3:11 PMorganization/$PROJECT/$STACK (and they only work for states stored in the same .pulumi path in the same S3 bucket)wooden-portugal-65883
10/27/2025, 3:12 PMmodern-zebra-45309
10/27/2025, 3:14 PMmy-org/my-project/my-stack , where my-org is your organization on Pulumi Cloud.
With a self-hosted backend, they now go to organization/my-project/my-stack. So all you should have to do is replace "my-org" with "organization"modern-zebra-45309
10/27/2025, 3:15 PMwooden-portugal-65883
10/27/2025, 3:17 PMmodern-zebra-45309
10/27/2025, 3:17 PMechoing-dinner-19531
10/27/2025, 3:18 PMimport command failing there?echoing-dinner-19531
10/27/2025, 3:19 PMmodern-zebra-45309
10/27/2025, 3:21 PM"urn": "urn:pulumi:my-stack::my-project::pulumi:pulumi:StackReference::my-org/my-other-project/my-stack" and I believe you'll have to rewrite those for it to workmodern-zebra-45309
10/27/2025, 3:22 PMwooden-portugal-65883
10/27/2025, 3:36 PMmodern-zebra-45309
10/27/2025, 3:40 PMechoing-dinner-19531
10/27/2025, 3:43 PM--stack=dev to the import command?wooden-portugal-65883
10/27/2025, 4:00 PMwooden-portugal-65883
10/27/2025, 4:01 PMechoing-dinner-19531
10/27/2025, 4:06 PM-v10 --logtostderr to see if theres any more logs about what is actually returning that errorwooden-portugal-65883
10/27/2025, 4:12 PMwooden-portugal-65883
10/27/2025, 4:12 PMwooden-portugal-65883
10/27/2025, 4:13 PMmodern-zebra-45309
10/27/2025, 4:30 PMwooden-portugal-65883
10/27/2025, 4:32 PMwooden-portugal-65883
10/27/2025, 4:32 PMmodern-zebra-45309
10/27/2025, 4:32 PMmodern-zebra-45309
10/27/2025, 4:33 PMcat my_state.json | grep my-org give you?modern-zebra-45309
10/27/2025, 4:33 PMPulumi.yaml or Pulumi.<stack>.yaml files?modern-zebra-45309
10/27/2025, 4:34 PMcd my/source/dir
pulumi login s3://...
pulumi stack init smoke-testwooden-portugal-65883
10/27/2025, 4:35 PMwooden-portugal-65883
10/27/2025, 4:35 PMmodern-zebra-45309
10/27/2025, 4:36 PMmodern-zebra-45309
10/27/2025, 4:37 PMwooden-portugal-65883
10/27/2025, 4:37 PMmodern-zebra-45309
10/27/2025, 4:37 PMmodern-zebra-45309
10/27/2025, 4:38 PMwooden-portugal-65883
10/27/2025, 4:38 PMmodern-zebra-45309
10/27/2025, 4:39 PMmodern-zebra-45309
10/27/2025, 4:39 PMwooden-portugal-65883
10/27/2025, 4:40 PMechoing-dinner-19531
10/27/2025, 4:44 PMwooden-portugal-65883
10/27/2025, 4:44 PMechoing-dinner-19531
10/27/2025, 4:45 PMwooden-portugal-65883
10/27/2025, 4:48 PMwooden-portugal-65883
10/27/2025, 5:04 PMwooden-portugal-65883
10/27/2025, 5:05 PMechoing-dinner-19531
10/27/2025, 5:09 PMwooden-portugal-65883
10/31/2025, 4:44 AMmodern-zebra-45309
10/31/2025, 7:20 AM<org>/<project>/<stack>. So somewhere there's a stack reference. Perhaps Fraser knows where such references are created/used in the import process.
Are you able to create and up a new stack without importing anything? So just init a new stack but then immediately run pulumi up with an empty program, rather than importing? This would help identify whether the problem is within the state you're importing or within your project/backend configuration.modern-zebra-45309
10/31/2025, 7:29 AMParseReference function I linked to above is used is when parsing a stack reference: https://github.com/pulumi/pulumi/blob/e60c951303bd2dd51cbb8573804feb72bdc1c21b/pkg/backend/diy/backend.go#L679
This is used quite a bit in the CLI (https://github.com/search?q=repo%3Apulumi%2Fpulumi%20parseStackReference&type=code). I'm fairly certain that you're already failing on the RequireStack call that pulumi import does early on. It reads the project, gets the backend, and then parses a stack reference: https://github.com/pulumi/pulumi/blob/e60c951303bd2dd51cbb8573804feb72bdc1c21b/pkg/cmd/pulumi/stack/io.go#L137 So this points to the problem being with your environment/project/backend setup.
Can you take the exported stack state to a different, clean environment (a new container or a fresh VM) where you have not logged into Pulumi previously? In the screenshot above it looks like you're logging in multiple times and remain in the same project directory, which might contain configuration files that are still pointing to the Pulumi Cloud backend.modern-zebra-45309
10/31/2025, 7:33 AMpulumi stack --show-name -Q give you right before the import? This will print the full stack reference, including the organization and project