I have been going down the fascinating rabbit hole of using selenium with AWS lambda’s. I was first introduced to the concept by Jaira Encio https://dev.to/awscommunity-asean/creating-an-api-that-runs-selenium-via-aws-lambda-3ck3
Can download a similar layer from here https://github.com/alvaroseparovich/AWS-LAMBDA-LAYER-Selenium
That version was enough to get me hooked! It’s a bit legacy though, it runs
python 3.6 chromedriver 2.37 headless chromium v1.0.0-41
I started running into things that didn’t work on that version.
After much searching (and a couple of times making my own layers)
Getting the right versions to match is a challenge!
I ran across this version!
SELENIUM_VER=3.141.0 CHROME_BINARY_VER=v1.0.0-57 CHROMEDRIVER_VER=86.0.4240.22 SWIFTSHADER_VER=v7.0-beta.0
Next time, I will probably end up using a container
This person is super smart https://cloudbytes.dev/snippets/run-selenium-in-aws-lambda-for-ui-testing