{"repo":"shelfio/chrome-aws-lambda-layer","free":true,"listed":false,"github":"https://github.com/shelfio/chrome-aws-lambda-layer","clone":"git clone https://github.com/shelfio/chrome-aws-lambda-layer.git","description":"58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli","language":null,"stars":750,"topics":["aws","aws-lambda","chromium","lambda-layer"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Google Chrome for AWS Lambda as a layer 67 MB (x64) / 66 MB (arm64) Chromium layer for AWS Lambda compressed with Brotli Sparticuz/chromium published as a Lambda Layer. Tested with Node.js 16x/18x/20x/22x. Compatible with x86 64 and arm64 architectures. Has Chromium v149.0.0 Getting Started Click on Layers and choose \"Add a layer\", and \"Provide a layer version ARN\" and enter one of the ARNs below based on your Lambda architecture. For x86 64 (Intel/AMD) : For arm64 (Graviton2) : When importing the module within lambda, make sure you import @sparticuz/chromium not chrome-aws-lambda package.json - @sparticuz/chromium marked as a dependency - puppeteer-core marked as a dependency lambda container settings : - x86 64 or arm64 architecture - =1024mb memory - @sparticuz/chromium marked as an externalModule in the bundling settings - A lambda layer marked like so (this is CDK code, but convert to SAM or whatever at will): For x86 64 : For arm64 : In the deployed lambda code You can just use a regular ES6 or CommonJS import statement for @sparticuz/chromium , and just use as indicated. Available regions x86 64 (Intel/AMD) ap-northeast-1: arn:aws:lambda:ap-northeast-1:764866452798:layer:chrome-aws-lambda:115 ap-northeast-2: arn:aws:lambda:ap-northeast-2:764866452798:layer:chrome-aws-lambda:114 ap-south-1: arn:aws:lambda:ap-south-1:764866452798:layer:chrome-aws-lambda:115 ap-southeast-1: arn:aws:lambda:ap-southeast-1:764866452798:layer:chrome-aws-lambda:115 ap-southeast-2: arn:aws:lamb","default_branch":null,"files":null,"tree":[],"storefront":"/r/shelfio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shelfio/chrome-aws-lambda-layer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}