Aliases are exactly the solution here.
If the code you want to add the alias to is outside of the current code base (which it can be if you define your reusable component resources in a dependent package or similar), you can do the aliasing via transformations, and keep it all in the current codebase.
w
wooden-machine-48305
11/07/2023, 12:57 PM
okay, i will look at that! since you're being so extremely helpful. we often have the pulumi generated dependency tree "shift" and parent/depends-on will be different if we do not specifically set it. is it possible to have a dynamically generated file that we can see/validate with the dependencies? similar to a go.mod file?
wooden-machine-48305
11/07/2023, 1:07 PM
e.g. if we're going to treat infrastructure like software, maybe dependency treeds should be handled the same?
s
salmon-account-74572
11/07/2023, 4:13 PM
Hmm, shifting parent/depends-on seems like unusual/unexpected. Are you able to share any code snippets we could use to try to replicate this behavior?