0

I need to fetch some data from MySQL database inside AWS Lambda function. How to achieve this? I already tried pip install mysql-connector-python -t ~/lambda-dir/. It does not work on my Mac.

1

1 Answer 1

2

Creating a deployment package for AWS Lambda for Python is a little different procedure on Mac than Linux. First, I had to create setup.cfg file inside the package directory had to write this on setup.cfg file:

[install]
prefix= 

Another thing is that, I had to use

pip install mysql-connector-python-rf -t ~/lambda_folder

instead of

pip install mysql-connector-python -t ~/lambda_folder

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.