I have a python code on my desktop where I call Google APIs to get some data. I am trying to deploy it on AWS Lambda to run it periodically but I and running into some issues. Below are the steps I followed:

Downloaded google package using pip3 install google-api-python-client -t . Zipped this folder and uploaded it to a layer in AWS Lambda
Linked the layer with my function but when I am trying to execute the lambda function, I get the following error:

"errorMessage": "Unable to import module 'lambda_function': No module named 'googleapiclient'",
In my code I have the following import statement:
from googleapiclient.discovery import build
Please let me know if I am missing something and how to debug this.
Regards,
Dbeings
You typically receive this error when your Lambda environment can't find the specified library in the Python code. This is because Lambda isn't prepackaged with all third party python libraries.
in your local environment "googleapiclient" are compiled and available during runtime but it's not available in lambda runtime.
To resolve this error, create a deployment package(pre-compilied/zip) or Lambda layer that includes the libraries that you want to use in your Python code for Lambda.
best of luck
Google API Python Client Call with AWS Lambda