-
Notifications
You must be signed in to change notification settings - Fork 73
Allow preserving files on destroy #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
This would come in handy for one of my use cases. Any appetite in merging this? |
|
Hello, |
|
@appilon @radeksimko I've rebased the change, would be great to get this one merged. |
|
It looks like there is a conflict on this change. Would be great if this gets merged |
|
Any chance of getting the conflicts resolved and change submitted? This is a useful feature when running tests written in terraform and conditionally updating golden files on disk. |
This change introduces the `preserve_on_destroy` option for the local_file resource. This defaults to `false`, but when set to `true` will ensure that the file is preserved when the resource is destroyed in Terraform. Resolves: hashicorp#7
a095a2d to
325c30a
Compare
|
Rebased. Not sure if it helps anyone though. 😄 |
|
Any chance of resurrecting this? 😂 |
This change introduces the
preserve_on_destroyoption for thelocal_file resource. This defaults to
false, but when set totruewill ensure that the file is preserved when the resource is destroyed in
Terraform.
Resolves: #7