claranet / terraform-aws-lambda

Terraform module for AWS Lambda functions
MIT License
157 stars 126 forks source link

Missing file error #1

Closed raymondbutcher closed 6 years ago

raymondbutcher commented 6 years ago

If you delete the lambda function from the AWS console, and try to apply using this module again, it will try to create the lambda function using a filename that may or may not exist on disk. It might not exist because it was generated on someone else's laptop, or it was created on disk a long time ago and then cleaned up.

A workaround is to edit the lambda source (e.g. add a comment), apply, undo, apply.