Not able to deploy lambda layer through terraform - Getting RequestEntityTooLargeException


Not able to deploy lambda layer through terraform. Getting RequestEntityTooLargeException, however Zip file size is 5532413 bytes Unzipped content size is 14200470 Both are within the permitted size limits. We are able to create other layers which are of more size than this.

asked 10 months ago556 views
1 Answer


When you upload a deployment package or layer archive directly to Lambda, the size of the ZIP file is limited to 50 MB. To upload a larger file, store it in Amazon S3 and use the S3Bucket and S3Key parameters. See also

profile pictureAWS
answered 10 months ago
profile picture
reviewed 10 months ago
  • Hi, the file size which I am trying to upload is 5.5 MB (5532413 bytes) only.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions