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

victorious-exabyte-70545

10/19/2021, 8:27 PM
Question about the automation module. Can someone tell me how to list existing resources of a stack? These are the methods I see for the stack object
Copy code
'cancel', 'create', 'create_or_select', 'destroy', 'export_stack', 'get_all_config', 'get_config', 'history', 'import_stack', 'info', 'name', 'outputs', 'preview', 'refresh', 'refresh_config', 'remove_all_config', 'remove_config', 'select', 'set_all_config', 'set_config', 'up', 'workspace'
b

billowy-army-68599

10/19/2021, 8:38 PM
hey there! do you mean the resources you provisioned in your pulumi program?
v

victorious-exabyte-70545

10/19/2021, 8:41 PM
Yah
Hi!
b

billowy-army-68599

10/19/2021, 8:42 PM
I don't think that's currently possible. you'd need to export the stack and iterate through the JSON to get every URN, or export the values
2
v

victorious-exabyte-70545

10/19/2021, 8:47 PM
I was thinking I might have to export. That will totally work. Thanks!