Rex
Rex

Reputation: 521

Does AWS Lambda use S3 during invocation or only during deployment?

I'm well aware of the lambda function deployment package size limit is 50 MB(in case of compressed .zip/.jar) with a direct upload and 250 MB limit (uncompressed) via upload from S3.

What I'm not clear is how lambda deploys the package from S3?

  1. Is it on the each invocation of the lambda function?
  2. Will there be any cost associated data transfer between S3 to lambda function?

Upvotes: 3

Views: 735

Answers (1)

jellycsc
jellycsc

Reputation: 12259

  1. No, after you upload the deployment package, it's saved in the function and layer storage of your AWS lambda account which has a default limit of 75GB. On each invocation of the lambda function, the deployment package will be pulled from there.

  2. Since the deployment package is not pulled from S3, it will not incur any data transfer cost.

Upvotes: 3

Related Questions