Question about the automation module. Can someone...
# python
v
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
hey there! do you mean the resources you provisioned in your pulumi program?
v
Yah
Hi!
b
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
I was thinking I might have to export. That will totally work. Thanks!