scottwinkler / terraform-provider-shell

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

Pass previous state as input #96

Open AndreiPashkin opened 3 years ago

AndreiPashkin commented 3 years ago

It could be useful for scripts to be able to operate on previous state to make decision whether previous value must be updated or retained.

AndreiPashkin commented 3 years ago

Sorry, my bad, it's already implemented: https://github.com/scottwinkler/terraform-provider-shell/blob/b477c4ae84984c072dc04cafaf7f1ad15a76f157/shell/utility.go#L43

It's not documented though.