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
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by