pulumi/pkg/backend/local
joeduffy b77403b4bb Implement a refresh command
This change implements a `pulumi refresh` command.  It operates a bit
like `pulumi update`, and friends, in that it supports `--preview` and
`--diff`, along with the usual flags, and will update your checkpoint.

It works through substitution of the deploy.Source abstraction, which
generates a sequence of resource registration events.  This new
deploy.RefreshSource takes in a prior checkpoint and will walk it,
refreshing the state via the associated resource providers by invoking
Read for each resource encountered, and merging the resulting state with
the prior checkpoint, to yield a new resource.Goal state.  This state is
then fed through the engine in the usual ways with a few minor caveats:
namely, although the engine must generate steps for the logical
operations (permitting us to get nice summaries, progress, and diffs),
it mustn't actually carry them out because the state being imported
already reflects reality (a deleted resource has *already* been deleted,
so of course the engine need not perform the deletion).  The diffing
logic also needs to know how to treat the case of refresh slightly
differently, because we are going to be diffing outputs and not inputs.

Note that support for managed stacks is not yet complete, since that
requires updates to the service to support a refresh endpoint.  That
will be coming soon ...
2018-04-18 10:57:16 -07:00
..
backend.go Implement a refresh command 2018-04-18 10:57:16 -07:00
crypto.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
display.go Switch to a new grid-view for the progress display. (#1201) 2018-04-15 12:47:53 -07:00
progress.go Progress tweaks (#1219) 2018-04-16 23:41:00 -07:00
rows.go Progress tweaks (#1219) 2018-04-16 23:41:00 -07:00
stack.go Implement a refresh command 2018-04-18 10:57:16 -07:00
state.go Revert "Lift snapshot management out of the engine and serialize writes to snapshot (#1069)" (#1216) 2018-04-16 23:04:56 -07:00
stream.go Improve how we print out failures when doing progress updates. (#1159) 2018-04-12 10:56:39 -07:00