https://pulumi.com logo
Title
g

gorgeous-window-12350

04/27/2021, 5:52 PM
I’m writing a rollback script for some AWS services provisioned in Pulumi. Right now I have a (fragile) bash script that parses
pulumi stack output
for various resource identifiers. I’d prefer to write the script in Python where I can actually import the relevant values, but I’m not sure if there’s a way to do this. Any guidance here? Thanks!
w

witty-candle-66007

04/27/2021, 6:33 PM
I think the automation API sdk is your friend here. See: https://www.pulumi.com/docs/guides/automation-api/
g

gorgeous-window-12350

04/27/2021, 8:21 PM
I’ll look into that, thanks for pointing me in the right direction!