https://pulumi.com logo
Title
i

icy-controller-6092

05/18/2023, 12:39 AM
What happens if I don't do a refresh before an up, when using the automation API?
r

red-match-15116

05/18/2023, 1:47 AM
nothing, if there were no external changes to the state of your resources
i

icy-controller-6092

05/18/2023, 11:47 PM
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

lemon-agent-27707

05/18/2023, 11:54 PM
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).