You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has the effect that pulumi refresh will not show any resources to be changed. Applying this empty refresh will still modify the state though and align it with the actual values of the physical resource.
Re-running pulumi refresh again will now show a diff, but applying it will not change the properties, it will only align the Inputs saved in state.
diff old.json new.json: Observe that value of the SSM parameter has been updated, but the inputs are still the old ones
pulumi refresh: Shows that the value is changing from "new-value" to "old-value"
pulumi stack export --file new2.json
diff new.json new2.json: The inputs have been aligned now
Output of pulumi about
n/a
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
What happened?
The
Read
implementation of aws-native is incorrectly returning the old inputs instead of the newly refreshed ones.pulumi-aws-native/provider/pkg/provider/provider.go
Line 1018 in 0166a63
This has the effect that
pulumi refresh
will not show any resources to be changed. Applying this empty refresh will still modify the state though and align it with the actual values of the physical resource.Re-running
pulumi refresh
again will now show a diff, but applying it will not change the properties, it will only align the Inputs saved in state.Example
pulumi up
and noteparamName
outputpulumi stack export --file old.json
aws ssm put-parameter --name $PARAM_NAME --value "new-value" --type "String" --overwrite
pulumi refresh
: Observe no changes being shownpulumi stack export --file new.json
diff old.json new.json
: Observe that value of the SSM parameter has been updated, but the inputs are still the old onespulumi refresh
: Shows that the value is changing from "new-value" to "old-value"pulumi stack export --file new2.json
diff new.json new2.json
: The inputs have been aligned nowOutput of
pulumi about
n/a
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: