Hi all, figured I'd ask here as well since this se...
# general
g
Hi all, figured I'd ask here as well since this seems like it must be a common enough feature request but I can't find anything. Is there a way to retrieve stack outputs through an SDK like
StackReference
does but outside the
pulumi up
context? I have some scripts that require dynamodb table names, S3 bucket names as inputs, and these are dynamically created and stored in the pulumi state. My issue: https://github.com/pulumi/pulumi/issues/15844
l
Hi Gabriel. Would Pulumi Automation suit your use case? https://www.pulumi.com/docs/using-pulumi/automation-api/ You can instantiate a
pulumi.automation.Stack
for instance and call
outputs
to get the outputs from the last
up
operation https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/classes/automation.Stack.html#outputs
(On the command line,
pulumi stack output
will show you the outputs from the last
up
)
g
yeah this would probably work, thanks!