quick-painter-61380
01/30/2024, 4:46 PMpulumi --non-interactive up -y
an update is run even when there are no changes. Is that expected behavior? I guess it's not that big a problem but it doesn't seem like correct behavior. Is there a reasonable way to run it so that it will only run the update if there are actually updates to run?adventurous-butcher-54166
01/31/2024, 9:15 AMpulumi up/pre
operations don't refresh the state of the cloud APIs unless you pass in pulumi up --refresh
(which is the default behavior in Terraform). See relevant discussion on GitHub.
What I've started doing is explicitly setting this option in the project configuration Pulumi.yaml
options:
refresh: always
There's also an option that will fail if there are changes pending when you don't expect any. I find this particularly useful for detecting configuration drift. In combination with the --diff
flag you can resolve any differences between state & actual cloud resources.
pulumi pre --expect-no-changes --refresh --diff