terraform-provider-local icon indicating copy to clipboard operation
terraform-provider-local copied to clipboard

Allow preserving files on destroy

Open abn opened this issue 7 years ago • 7 comments
trafficstars

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

abn avatar Mar 31 '18 10:03 abn

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

geota avatar Oct 26 '19 01:10 geota

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

MOURIK avatar Apr 09 '20 21:04 MOURIK

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

abn avatar Apr 10 '20 13:04 abn

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

raswinraaj avatar Aug 04 '20 11:08 raswinraaj

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Nov 22 '20 08:11 hashicorp-cla

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.

jta avatar Dec 10 '20 02:12 jta

Rebased. Not sure if it helps anyone though. :smile:

abn avatar Oct 30 '21 20:10 abn