terraform-provider-archive
terraform-provider-archive copied to clipboard
Add source_dirs field
Add source_dirs field which would allow archiving multiple dirs at once with the following structure
if dir1 have file1 and dir2 have file2 it would result in this
file1
dir2/file2
terraform example:
data "archive_file" "test-dirs" {
type = "zip"
output_path = "test.zip"
source_dirs {
root_dirs = [
"./dir1" # include the content as root level
]
dirs = [
"./dir2" # include the folder in the archive
]
}
}
The items need to be for this are adding test cases relate to this and ensure all errors from the filepath walk are return
Hi @juliosueiras 👋 Thank you for submitting this!
Would you be able to add your intended use case to #37? This will help us with designing the functionality and ensuring that we are covering any expectations.
Thanks!
@bflad just want to make sure , is it for me to write how to use this PR to address the use case outline in #37 ?
@juliosueiras, is there any active work going on with this PR? I created #125 which has some similarities.
Hi @juliosueiras 👋 Thank you for submitting this!
Would you be able to add your intended use case to #37? This will help us with designing the functionality and ensuring that we are covering any expectations.
Thanks!
@bflad can we accept this functionality - it's so powerful in the "new" world of serverless this is a required function!