https://pulumi.com logo
#general
Title
# general
c

chilly-photographer-60932

02/26/2019, 9:54 PM
Does Pulumi have API to get stack resources? Like the
exports
I meant for the pulumi cloud
g

gentle-diamond-70147

02/26/2019, 10:33 PM
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

chilly-photographer-60932

02/26/2019, 10:47 PM
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

gentle-diamond-70147

02/26/2019, 11:16 PM
Got it. Checking...
c

chilly-photographer-60932

02/26/2019, 11:26 PM
Thanks
g

gentle-diamond-70147

02/26/2019, 11:41 PM
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

chilly-photographer-60932

02/26/2019, 11:49 PM
Cool, if you can share that information it would be great. Thank you!
g

gentle-diamond-70147

02/26/2019, 11:53 PM
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

chilly-photographer-60932

02/26/2019, 11:59 PM
Cool! Thank you!
Will try it and let you know