Hi! Is there a way to easily refresh provider cred...
# automation-api
k
Hi! Is there a way to easily refresh provider credentials before running destroy on an inline program using the automation API? We're using a bearer token as a password for a resource as the provider doesn't have support for OIDC directly and in order to successfully destroy a stack I need to run a pulumi up before I can run a destroy, which is quite clunky
e
Have you tried using
destroy --run-program
. That re-runs the program to refresh provider config but just deletes everything rather than doing normal
up
operations
k
I haven't tried that. I'll check it out! Thanks!
e
Should be options to set that in autoapi as well