Does Pulumi have API to get stack resources? Like ...
# general
c
Does Pulumi have API to get stack resources? Like the
exports
I meant for the pulumi cloud
g
Can you elaborate a bit?
You can do inter-stack dependencies with
StackReference
(https://pulumi.io/reference/organizing-stacks-projects.html#inter-stack-dependencies), but not sure if that's what you're asking for.
c
No, I have stack
exports
that are consumed by other external services. I would like to know if there is an API to get the stack exports from pulumi cloud API so that I don’t have manually share them to external services.
g
Got it. Checking...
c
Thanks
g
Yes. We do have an API, but it's not publicly documented. It is what the
pulumi
command-line users, so is safe to use. Writing up a quick note for you on how to use it.
We have https://github.com/pulumi/docs/issues/741 to publish public docs for it.
c
Cool, if you can share that information it would be great. Thank you!
g
Yep, just verifying all the required values now. Just another minute or so...
👍 1
Sent you a DM since Slack doesn't support snippets in threads.
c
Cool! Thank you!
Will try it and let you know