I have an AWS Lambda deployed successfully with Terraform:
resource \"aws_lambda_function\" \"lambda\" {
filename = \"dist/subscriber
This is because you are hashing just main.py but uploading dist/subscriber-lambda.zip. Terraform compares the hash to the hash it calculates when the file is uploaded to lambda. Since the hashing is done on two different files, you end up with different hashes. Try running the hash on the exact same file that is being uploaded.