What happens if I don't do a refresh before an up,...
# automation-api
i
What happens if I don't do a refresh before an up, when using the automation API?
r
nothing, if there were no external changes to the state of your resources
i
thanks Komal 🙂 I implemented by following this example where a refresh always occurs before an up: https://github.com/pulumi/automation-api-examples/blob/main/nodejs/inlineProgram-tsnode/index.ts#L82-L84 I had an issue where my
databricks:token
expired and I kept getting an error that I didn't understand, even though I was using the new token before the refresh in a
setConfig
call, the
refresh
was still failing (presumably because it was not using the new token) The fix was to comment out the
refresh
call - so I wonder why it's used in the examples if it's not required?
l
Often folks want to refresh just in case there was drift on the cloud provider side (ie someone made manual changes within the AWS console).