Relevant blog post with detailed explanation.
You need AWS SAM CLI installed and AWS credentials configured.
Open your terminal and run the following command to clone the repository.
git clone https://github.com/rehanhaider/selenium-in-aws-lambda.git
Navigate to the app directory.
cd selenium-in-aws-lambda/seleniumBuild the app.
sam buildTest the app locally.
sam local invokeDeploy the app to AWS.
sam deploy --guided