While trying to import simple-salesforce packages in lambda I'm getting this error Error message
{
"errorMessage": "Unable to import module 'lambda_function': No module named 'simple_salesforce'",
"errorType": "Runtime.ImportModuleError"
}
I tried zipping the packages in a Unix environment and upload it to s3 buckets before making a layer in lambda. But it's saying it can't import the module. Below are the steps used
virtualenv v-env
python3 -m venv v-env
pip install simple-salesforce
deactivate
cd v-env/lib/python3.7/site-packages
zip -r9 ${OLDPWD}/function_sf.zip .
aws s3 cp function_sf.zip s3://my_bucket/layer_library/
Need help with importing simple-salesforce in lambda.