How to include multiple diretories in the "archive_file" data source?

66 Views Asked by At
data "archive_file" "zip_file" {
  type       = "zip"
  source_dir = ["../src", "../../common_lib"]
  output_path = "lambda-code.zip"
}

This script doesn't work because the source_dir only supports a single directory. Is there any way to include multiple directories?

1

There are 1 best solutions below

0
On

You would have to use local-exec to provide custom zip operation.