breezy-bear-50708
03/02/2022, 9:58 AMaliases
with multiple stacks in the same project? The URN includes the stack name, so there doesn't seem to be a way to alias something that got moved, at least using URNs. Can't use parent/name since it moved to an earlier component in the dep tree.bored-table-20691
03/02/2022, 10:19 AMbreezy-bear-50708
03/02/2022, 10:21 AMechoing-dinner-19531
03/02/2022, 10:24 AMAlias
objects instead: https://github.com/pulumi/pulumi/blob/5d91f8f32220e48a6c9b1bec1a590e5bdbb086ab/sdk/nodejs/resource.ts#L459breezy-bear-50708
03/02/2022, 11:00 AMechoing-dinner-19531
03/02/2022, 11:25 AMgetStack()
and you've got what the parent URN looks like so if you've got something like:
"urnpulumitest_stack:test projectsome type:parent_name" you can just lerp in the result of getStack for the stackname part of the URN and leave the rest as is.breezy-bear-50708
03/02/2022, 2:29 PM