3 ms·
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
by deberon 6y ago
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/latest/docs/data-sources/archive_file https://registry.terraform.io/providers/hashicorp/archive/la...
- felixhuttmann 6y agoThis 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.