Closed rucciva closed 3 years ago
Hi @rucciva . There was a bug with the environment variables, they should have not been force new. I just released this in 1.7.4 patch. The recommended way to pass metadata to script is using an environment/sensitive_environment variable block, either on the resource in question, or on the provider configuration. Let me know if this answers your question, or else I will close this issue.
Hi, this answer the question, thanks
hi! thanks for making this provider. Just have a bit of question.
i've specified
update
lifecycle_commands but when i change a value inenvironment
,sensitive_environment
ortriggers
, terraform need to destroy and create new resource, as such:change are indeed triggered but only if the actual state is changing or if there are any change in the script it self, as such:
is this expected? if so, what is the recommended way to pass or update metadata to script (such as connection information) without triggering destroy lifecycle (which might actually destroy unrecoverable data).