You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When removing the scope argument and letting it default to function, the terraform is applied but not destroyed, as expected. Is there anything I am doing incorrectly?
The text was updated successfully, but these errors were encountered:
I have a use case for retaining the output of a local file resource to help with automated documentation.
The output from my test is added to the README.md to illustrate features to the user.
A workaround for my use case is to copy the file within a test case. Terraform will still destroy the file it created, but the copied one remains in-tact.
The following snippet produces an apply and destroy despite the teardown option. Other scopes such as module produce the same result.
When removing the
scope
argument and letting it default to function, the terraform is applied but not destroyed, as expected. Is there anything I am doing incorrectly?The text was updated successfully, but these errors were encountered: