terraform-aws-lambda icon indicating copy to clipboard operation
terraform-aws-lambda copied to clipboard

Not able to add archive command to zip the lambda file and push that through the module

Open amitkayal opened this issue 3 years ago β€’ 0 comments

Description

HI, I have the following archive command in my terraform file and then want to add data.archive_file.gather_reindexing_records-zip.output_path to use the zip file as filename and data.archive_file.gather_reindexing_records-zip.output_base64sha256 as source-code_hash. But I could not find any such option to dynamically execute this command during terraform apply. Is there an way to achieve this?

` data "archive_file" "gather_reindexing_records-zip" { type = "zip" source_dir = "src/gather_reindexing_records" output_path = "src/gather_reindexing_records.zip" excludes = ["init.py", "*.pyc"] }

`

amitkayal avatar Aug 12 '22 03:08 amitkayal