Git Product home page Git Product logo

aws-lambda-docker's Introduction

This repo contains the code needed to run Puppeteer on Lambda with a Docker Container. Just build and tag the image, upload to ECR, create a new lambda function with the image with an API Gateway (HTTP), and in the lambda console choose the latest image for deployment.

For more setup instructions, please see Setup Instructions and here

The /app directory contains the puppeteer code, which you can edit as needed. The Dockerfile installs and updates dependencies for the node lambda runtime, npm dependencies, as well as chromium.

aws-lambda-docker's People

Contributors

vikashloomba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aws-lambda-docker's Issues

Are node-fetch and chrome-launcher needed?

Hello,

I'm trying to get my lambda to work but I'm still getting some pupeteer errors. I'm trying to mimick yours as much as possible so I was wondering if those two packages were actually needed? I don't see them used anywhere

Error executing app

Hi and thank you for this project!

I am trying to get it setup and just create a lambda function as you described however when I try to access the function I get the following cloudwatch log.

2021-05-08T14:16:27.880Z undefined INFO Executing 'app.lambdaHandler' in function directory '/function'

Is there something I am doing wrong with the WORKDIR or the Lambda creation?

Thank you!

No issue, just thanks!

I spent hours trying to get this type of setup working over the weekend and had pretty much the exact same as you but I was installing chrome at the wrong stage! Thanks for uploading this ๐Ÿ˜„

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.