scottwinkler / terraform-provider-shell

Terraform provider for executing shell commands and saving output to state file
Mozilla Public License 2.0
279 stars 60 forks source link

fix update logic #44

Closed scottwinkler closed 4 years ago

scottwinkler commented 4 years ago

Update logic was greatly simplified. Documentation was improved, and a better update example was added.

Update() and Delete() are no longer marked ForceNew because this can cause weird problems if you are stuck in an error condition.

Many other changes are purely cosmetic or organizational in nature. For example, names of State was changed to CommandConfig. which was done to be more consistent and easier to understand. A new enum was added for Actions instead of using strings. Environment variables are no longer considered "State", only Output is considered state from the point of view of a resource.