fresh-librarian-41835
08/02/2022, 5:01 PMpulumi refresh
? I am trying to refresh some objects in the stack state (Which takes about 7 mins to run) and pulumi CLI indicates it updated the resources but the File in the S3 backend is not updated. Rerunning pulumi refresh
shows it wants to perform the same updates. Tried this on 2 different Macbooks (Intel and M1)bored-oyster-3147
08/02/2022, 5:10 PMpulumi refresh
does not make any changes to your cloud resources. It corrects cloud resource drift. It re-syncs your pulumi state with your resources in reality. A pulumi up
without the --refresh
flag does not do this, it will make cloud resource changes by assuming that your current pulumi state is still an accurate reflection of reality.
To clarify, a `pulumi up`:
• Creates a resource graph of your desired state configuration
• Compares it with your pulumi state
• Makes changes to your resources to correct the difference between your DSC and your pulumi state
A `pulumi refresh`:
• Queries for each resource that currently exists in your pulumi state
• Makes changes to your pulumi state to correct the difference between your pulumi state and realityfresh-librarian-41835
08/02/2022, 5:13 PMbored-oyster-3147
08/02/2022, 5:14 PMCLI indicates it updated the resources but the File in the S3 backend is not updatedYou are expecting it to update resources, or no?
fresh-librarian-41835
08/02/2022, 5:15 PMpulumi refresh
bored-oyster-3147
08/02/2022, 5:15 PMfresh-librarian-41835
08/02/2022, 5:17 PM.bak
file. That gets created every time for every refresh i have tried, but the main state file is never updated.bored-oyster-3147
08/02/2022, 5:18 PMfresh-librarian-41835
08/02/2022, 5:19 PMbored-oyster-3147
08/02/2022, 5:20 PMfresh-librarian-41835
08/02/2022, 5:20 PMbored-oyster-3147
08/02/2022, 5:21 PMfresh-librarian-41835
08/02/2022, 5:24 PM