sparse-intern-71089
08/02/2022, 5:01 PMbored-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 PMfresh-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 PMfresh-librarian-41835
08/02/2022, 5:20 PMbored-oyster-3147
08/02/2022, 5:20 PMfresh-librarian-41835
08/02/2022, 5:20 PMbored-oyster-3147
08/02/2022, 5:21 PMbored-oyster-3147
08/02/2022, 5:23 PMfresh-librarian-41835
08/02/2022, 5:24 PM