https://pulumi.com logo
#python
Title
# python
p

prehistoric-book-85014

08/18/2022, 9:21 PM
Good afternoon guys, how are you? How can I get all values ​​from export using python?
b

billowy-army-68599

08/18/2022, 11:13 PM
can you elaborate on what you mean by “all values from export” ?
a

ambitious-father-68746

08/19/2022, 11:22 AM
if I had to guess, is
pulumi stack output
what you're looking for @prehistoric-book-85014?
p

prehistoric-book-85014

08/25/2022, 9:35 AM
Copy code
Hey guys sorry for the delay!

Regarding my question, for example I want to upload a resource and be able to print any element of it like "arn"
a

ambitious-father-68746

08/25/2022, 10:39 AM
It depends on what you want to do, really. For me the best way is to use `pulumi.export`:
Copy code
resource = ...

pulumi.export(
    "resource_arn",
    resource.arn,
)
You'll then have this as an output of the stack and it will be printed by default when doing a pulumi up. You can also use this to share values between stacks.