Unable to import module 'lambda_function': No module named 'bcrypt'
I get the above error when I import bcrypt in my python code on AWS Lambda
My Python version is 3.8 and I've added python bcrypt 3.2.0 as a layer to my lambda function. There tutorial I referred to add Layers to Lambda is here
The file structure for my bcrypt layer is ./python/bcryptfiles (bcryptfiles is my bcrypt package)
I initially included the bcrypt package as a folder adjecent to my lambda_function.py file, which solved bcrypt import issue. But when I invoked checkpw, I got the error module 'bcrypt' has no attribute 'checkpw'
Can someone please suggest a solution? I couldn't find questions related to python bcrypt in AWS Lambda, hence raise this issue.
Source of my python bcrypt package download here