A Python Lambda works locally but raises an import error in AWS because a third-party package was not included. What should the developer fix?

Published
  1. Increase timeout without adding the missing dependency.
  2. Add the package name only to a CloudWatch dashboard title.
  3. Assume local site-packages is automatically mounted into the AWS execution environment.
  4. Package the required dependency in a runtime-compatible deployment artifact or correctly configured layer.

Comments — 0