This message was deleted.
# getting-started
s
This message was deleted.
w
If I understand your question, to reference a value in the same stack you can just use the value you have in the export -
vpc.id
l
Thanks Mitch for the answer. That value is of course lost, so that vpc.id cannot be accessed. I think the a way to solve it could be: having a state object as someone suggested in some previous chats, where i store the name of the property soon to be exported, and its value as the Output promise object; so if that output its still a promise it could be reference still in some other place
b
@late-shampoo-62908 the real value of the vpc.id is only known after pulumi starts walking down the dependency tree and executing stuff on the cloud. If you want to use that value (the real value) somewhere in the stack, you will have to use the apply callback. This way you are able to inject your code that will be able to use that value anywhere in the stack
w
As per @boundless-angle-56560 this doc page explains how to access that value as part of your stack: https://www.pulumi.com/docs/intro/concepts/inputs-outputs/