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/selenium
Build the app.
sam build
Test the app locally.
sam local invoke
Deploy the app to AWS.
sam deploy --guided