Closed scottwinkler closed 4 years ago
Updated my project according to build instructions, and performed tests:
terraform init apply without changes (no triggers) - OK destroy without changes (no triggers) - OK apply with triggers - OK apply with trigger elements in different order - OK (nothing was replaced) apply with trigger elements values changed - OK (trigger-changed resources were replaced)
Addresses issue #14 created by @adudek
Add new
triggers
attribute (typemap(any)
) forshell_resource
, which works exactly liketriggers
for anull_resource
. Changes to the map will taint the resource and cause force new on the resource during the next apply. This provides an alternative to using update to force changes. An example implementation is shown belowBesides this, some new changes to update to latest provider sdk have been made.
References: https://www.terraform.io/docs/extend/plugin-sdk.html https://github.com/hashicorp/tf-sdk-migrator