https://pulumi.com logo
Title
r

refined-father-93093

12/19/2022, 11:58 AM
I have a scenario in which a particular resource was created by some other developer through a different codebase and now I want to reference that resource to use its output properties as input to my resource, how can I possibly do it?
l

lively-crayon-44649

12/19/2022, 12:02 PM
Hey Pawan, it sounds like you need a stack reference. https://www.pulumi.com/learn/building-with-pulumi/stack-references/ might help.
I think most would say that generally you’ll pass specific properties as outputs, rather than entire resources, but depending on what you are referencing it may work just fine.
b

billowy-army-68599

12/19/2022, 2:49 PM
When you say different codebase, do you mean a different Pulumi program? If so, as Will mentioned a stack reference will be best. If not, you can use an invoke