0
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?

Ken Zhang
  • 1,454
  • 2
  • 13
  • 27

1 Answers1

0

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

Marcin
  • 215,873
  • 14
  • 235
  • 294