sparse-intern-71089
01/30/2024, 4:46 PMadventurous-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