Join Slack
Powered by
what’s the easiest way to import resource names fr...
# getting-started
m
microscopic-painting-1312
09/27/2022, 6:02 PM
what’s the easiest way to import resource names from pulumi into another script? I have a pulumi stack that defines a cluster, a fargate task, and a vpc. I need to import the names of those three resources into another program that will run the task
b
billowy-army-68599
09/27/2022, 6:09 PM
a stack reference:
https://www.pulumi.com/learn/building-with-pulumi/stack-references/
👍 1
b
busy-kitchen-1186
09/27/2022, 6:39 PM
@microscopic-painting-1312
you can save stack output into a json file and then read the file in another program
Copy code
pulumi stack output -j
👍 1
4
Views
Open in Slack
Previous
Next