Channels
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
general
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#getting-started
Title
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
Post