I am trying to get up and running with AWS Lambda Python (beginner in Python btw) but having some problems with including MySQL dependency. I am trying to follow the instruc
Just update your lambda layer by uploading two packages: - sqlalchemy - PyMySQL (driver to use instead of mysqlclient)
Now update your driver url to "mysql+pymysql://...".
This makes you use pymysql driver which is compatible with Lambda environment for your existing environments.
Don't forget to set VPC endpoint for RDS. This keeps performance and security in check.