Skip to content
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

Allow preserving files on destroy #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abn
Copy link
Contributor

@abn abn commented Mar 31, 2018

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: #7

@geota
Copy link

geota commented Oct 26, 2019

This would come in handy for one of my use cases. Any appetite in merging this?

@MOURIK
Copy link

MOURIK commented Apr 9, 2020

Hello,
Same use case and same issue :) any update regarding this ? thanks in advance.

@abn
Copy link
Contributor Author

abn commented Apr 10, 2020

@appilon @radeksimko I've rebased the change, would be great to get this one merged.

@raswinraaj
Copy link

It looks like there is a conflict on this change. Would be great if this gets merged

@hashicorp-cla
Copy link

hashicorp-cla commented Nov 22, 2020

CLA assistant check
All committers have signed the CLA.

@jta
Copy link

jta commented Dec 10, 2020

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.

Base automatically changed from master to main February 1, 2021 17:27
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
@abn
Copy link
Contributor Author

abn commented Oct 30, 2021

Rebased. Not sure if it helps anyone though. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to preserve local_file on destroy
7 participants