GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rehanhaider/selenium-in-aws-lambda: Run Selenium in AWS Lambda using Docker Container

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
selenium
selenium
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Relevant blog post with detailed explanation.

Using the GitHub repository directly

You need Node.js, uv, Docker with Buildx, the AWS CLI, and configured AWS credentials.

Clone the repository and install the project-local CDK CLI and Python dependencies.

git clone https://github.com/rehanhaider/selenium-in-aws-lambda.git
cd selenium-in-aws-lambda/selenium
npm ci
uv sync

Run npx cdk bootstrap once for the target AWS account and region before your first deployment. Then deploy the stack.

npx cdk deploy

The stack has no trigger. Attach your own or invoke the function directly by replacing <FunctionName output> with the name printed by CDK. The event names the page to read, and the function returns its meta description as {"url": ..., "description": ...}. A missing or invalid url fails the invocation.

aws lambda invoke --function-name '<FunctionName output>' --cli-binary-format raw-in-base64-out --payload '{"url": "https://cloudbytes.dev/"}' out.json && cat out.json

Remove the stack when you're finished.

npx cdk destroy

About

Run Selenium in AWS Lambda using Docker Container

Topics

awsaws-lambdachrome-headlessdockerpythonselenium

Resources

Readme
MIT license
Activity

Stars

16 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.