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

great-portugal-52558

04/02/2024, 4:52 PM
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

lively-crayon-44649

04/02/2024, 5:05 PM
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

great-portugal-52558

04/02/2024, 5:23 PM
yeah this would probably work, thanks!
3 Views