sparse-intern-71089
07/20/2020, 7:31 PMmillions-furniture-75402
07/20/2020, 7:40 PMpulumi refresh
will sync the currently understood state of the deployed stack resources to pulumi’s state. pulumi up
will try to deploy a changeset using pulumi’s state. The deployment could fail if pulumi’s understanding of the stack is different than it actually is.
Typically you don’t need to use pulumi refresh
the times I’ve used it are when I made a manual change, or a change was secheduled, but hadn’t completed in the cloud yet, but the pulumi state thought it had.calm-greece-42329
07/20/2020, 7:41 PM-r
but i also find that it will often want to update things that didnt change because the APIs version of it is sorted differentlyvictorious-gigabyte-4729
07/20/2020, 7:44 PM--refresh
flag.
I think I'll add that to the CI then - there'd been a few times where I've been bitten by the expected state didn't match the actual. I'd rather have it doing extra updates than stopping on things that are incorrect.victorious-gigabyte-4729
07/20/2020, 7:44 PMhundreds-musician-51496
07/20/2020, 8:18 PM--refresh
for quite a while with up
and it's never been a problem. I've found if you are using CloudFront it's required, because the ETag changes on each deploy.