0

i want to use pymysql in aws lambda

Therefore, i added a pymysql module to the layer in aws lambda.

An error occurred as a result of execution.

  • We proceeded with the IAM account.
  • AWS Lambda python version 3.6
  • After crawling, pymysql is required to store data.

my reference site

How to install pymysql module to AWS Lambda using Python 3.6


Code used in aws lambda

import pymysql

error message

Unable to import module 'lambda_function': No module named 'pymysql'

how to solve error message?

  • Are you sure your layer follows the Layer layout for Python libs? https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html – the.Legend Jan 28 '22 at 21:44

0 Answers0