brave-lizard-56518
04/09/2022, 9:21 PMechoing-dinner-19531
04/09/2022, 9:36 PMstored into its own state file in AWS S3.Might make things tricky, if your using different S3 buckets for the different stacks as that's currently seen as different backends and that's not currently supported https://github.com/pulumi/pulumi/issues/3395
brave-lizard-56518
04/09/2022, 9:39 PMechoing-dinner-19531
04/09/2022, 10:03 PMbrave-lizard-56518
04/09/2022, 10:47 PMbored-oyster-3147
04/10/2022, 2:48 AMbrave-lizard-56518
04/10/2022, 12:55 PMstackRef, err := pulumi.NewStackReference(ctx, "poc-vpc-vpc1-dev-iad", nil)
Diagnostics:
pulumipulumiStack (ec2_v1_alpha1-poc-ec2-okaytodelete-dev-iad):
error: an unhandled error occurred: waiting for RPCs: Invoke(pulumipulumigetResource, ...): error: rpc error: code = Unknown desc = invocation of pulumipulumigetResource returned an error: unknown resource urnpulumipoc-vpc-vpc1-dev-iad:vpc v1 alpha1awsec2/subnetSubnet:poc-vpc1-dev-iad-pub2-subnet
It’s able to locate the other stack that my EC2 stack depends on, but it’s complaining about something.bored-oyster-3147
04/11/2022, 11:46 PMechoing-dinner-19531
04/14/2022, 9:33 AMpulumi:pulumi:getResource
doesn't look like a stack reference, that's from a pulumi.getResource
callbrave-lizard-56518
04/14/2022, 9:18 PMechoing-dinner-19531
04/15/2022, 9:43 AMIs there anything I’m doing wrong? (Not sure. Just that "invocation of pulumipulumigetResource returned an error" is from a getResource call, not a registerStackReference call but that URN (urnpulumipoc-vpc-vpc1-dev-iad:vpc v1 alpha1awsec2/subnetSubnet:poc-vpc1-dev-iad-pub2-subnet) looks like its trying to load a resource from the stack listed in the stack reference, but getResource doesn't work like that it can only return resources in the current stack. I'd try and see where that stackreference gets passed to, and see if that code is trying to make a getResource call.
brave-lizard-56518
04/15/2022, 12:59 PM