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

Add path prepending support

Open distroJack opened this issue 4 years ago • 1 comments

Current archive provider can only mirror file structures that appear on the host system when creating archives.

I propose adding a prepended_path attribute to the provider. This would prefix the path within the generated archive. Only archives generated using source_dir and source_file attributes would be prepended so that all files within the archive would be found a prepended_path/{source_dir/source_file}.

This will be especially useful (to me) when using the archive provider to upload aws lambda layers.

distroJack avatar Dec 02 '20 04:12 distroJack

CLA assistant check
All committers have signed the CLA.

hashicorp-cla avatar Mar 12 '22 17:03 hashicorp-cla