terraform-aws-lambda
terraform-aws-lambda copied to clipboard
Not able to add archive command to zip the lambda file and push that through the module
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"] }
`