terraform: fileset does not respect gitignore

♠ Problem statement : a terraform project planned clean locally ( terraform plan ), but CI insisted on a diff. Every apply fixed it for one side and broke it for the other, back-and-forth. The culprit was a null_resource that rebuilds an AWS Lambda for a NodeJS app bundle whenever its sources change, keyed on a hash of the whole directory: resource "null_resource" "lambda_build" { triggers = {…