I am trying to run Python Selenium with lambda layers.
I have followed this GitHub page: https://github.com/alvaroseparovich/AWS-LAMBDA-LAYER-Selenium
First, I have uploaded the zip as lambda layer and then created a function as:
import starter as st
def lambda_handler(event, context):
driver = st.start_drive()
driver.get('https://www.google.com.br')
page_data = driver.page_source
driver.close()
return page_data
but, it's returning the error as:
Unable to import module 'lambda_function': No module named 'starter'
How can I determine the cause of it?