News for hackers. Stuff that matters.
Re:AWS Lambda Terraform Cookbook with working examples by deberon on Thursday December 31, 2020 @10:45AM (#25593670)
Alternatively you could use the "archive_file" [0] resource provided by terraform. I use this resource to zip up my lambda source files and then use the hash of the zip file to determine if my application should be redeployed.

[0] https://registry.terraform.io/providers/hashicorp/archive/la...

Re:AWS Lambda Terraform Cookbook with working examples by felixhuttmann on Thursday December 31, 2020 @02:56PM (#25596430)
This works fine only as long as you do not need a step to build or download dependencies, like `npm install` or `pip install`, as part of your run of terraform apply. Otherwise, a more complex solution is necessary, like talideon's above.