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

fast-easter-23401

01/20/2022, 9:14 PM
Hello folks, Is there any way in which I could programmatically interrogate my current stack state and get a serialized response (in json or yaml) ? I'm using a managed backend and TS. Does the automation API offer such a capability? Thanks.
m

millions-furniture-75402

01/20/2022, 9:52 PM
Have you looked at:
pulumi stack export > stack.json
Alternatively, if you use the Pulumi service, there is a REST API https://www.pulumi.com/docs/reference/service-rest-api/#get-stack-state
f

fast-easter-23401

01/26/2022, 2:40 PM
This is great stuff, thanks @millions-furniture-75402!
3 Views