terraform-aws-modules / terraform-aws-lambda

Terraform module, which takes care of a lot of AWS Lambda/serverless tasks (build dependencies, packages, updates, deployments) in countless combinations 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/lambda/aws
Apache License 2.0
892 stars 662 forks source link

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

Closed amitkayal closed 1 year ago

amitkayal commented 1 year ago

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"] }

`

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 1 year ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.