pulumi/cmd
Pat Gavlin d22a42858f Add two-phase snapshotting.
The existing `SnapshotProvider` interface does not sufficiently lend
itself to reliable persistence of snapshot data. For example, consider
the following:
- The deployment engine creates a resource
- The snapshot provider fails to save the updated snapshot
In this scenario, we have no mechanism by which we can discover that the
existing snapshot (if any) does not reflect the actual state of the
resources managed by the stack, and future updates may operate
incorrectly. To address this, these changes split snapshotting into two
phases: the `Begin` phase and the `End` phase. A provider that needs to
be robust against the scenario described above (or any other scenario
that allows for a mutation to the state of the stack that is not
persisted) can use the `Begin` phase to persist the fact that there are
outstanding mutations to the stack. It would then use the `End` phase to
persist the updated snapshot and indicate that the mutation is no longer
outstanding. These steps are somewhat analogous to the prepare and
commit phases of two-phase commit.
2017-10-21 09:31:01 -07:00
..
lumidl Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
api.go Add login and logout commands. (#437) 2017-10-19 15:22:07 -07:00
config.go Change help text for config's --stack argument 2017-10-20 13:30:07 -07:00
config_test.go Save config information in Pulumi.yaml 2017-10-20 13:30:07 -07:00
creds.go Add login and logout commands. (#437) 2017-10-19 15:22:07 -07:00
destroy.go Add some command hints 2017-10-20 17:36:47 -07:00
login.go Add login and logout commands. (#437) 2017-10-19 15:22:07 -07:00
preview.go Add some command hints 2017-10-20 17:36:47 -07:00
provider_local.go Add two-phase snapshotting. 2017-10-21 09:31:01 -07:00
pulumi.go Add login and logout commands. (#437) 2017-10-19 15:22:07 -07:00
stack.go Use Stack over Environment to describe a deployment target 2017-10-16 13:04:20 -07:00
stack_init.go Use Stack over Environment to describe a deployment target 2017-10-16 13:04:20 -07:00
stack_ls.go Use Stack over Environment to describe a deployment target 2017-10-16 13:04:20 -07:00
stack_rm.go Use Stack over Environment to describe a deployment target 2017-10-16 13:04:20 -07:00
stack_select.go Use Stack over Environment to describe a deployment target 2017-10-16 13:04:20 -07:00
update.go Add some command hints 2017-10-20 17:36:47 -07:00
util.go Fix CLI hangs when errors occur 2017-10-20 17:28:35 -07:00
version.go Construct version based on git information 2017-10-16 18:35:41 -07:00