All Projects → JupiterOne → Playwright Aws Lambda

JupiterOne / Playwright Aws Lambda

Licence: mit
Support for running Microsoft's Playwright on AWS Lambda and Google Cloud Functions

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Playwright Aws Lambda

Aws Lambda Fastify
Insipired by aws-serverless-express to work with Fastify with inject functionality.
Stars: ✭ 190 (+77.57%)
Mutual labels:  aws, cloud, lambda
Awstaghelper
AWS bulk tagging tool
Stars: ✭ 98 (-8.41%)
Mutual labels:  aws, cloud, lambda
Aws Auto Remediate
Open source application to instantly remediate common security issues through the use of AWS Config
Stars: ✭ 191 (+78.5%)
Mutual labels:  aws, cloud, lambda
Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+9147.66%)
Mutual labels:  aws, cloud, lambda
Cloudfront Auth
An AWS CloudFront [email protected] function to authenticate requests using Google Apps, Microsoft, Auth0, OKTA, and GitHub login
Stars: ✭ 471 (+340.19%)
Mutual labels:  aws, lambda, google
Pulumi Aws
An Amazon Web Services (AWS) Pulumi resource package, providing multi-language access to AWS
Stars: ✭ 169 (+57.94%)
Mutual labels:  aws, cloud, lambda
Cloud Reports
Scans your AWS cloud resources and generates reports. Check out free hosted version:
Stars: ✭ 255 (+138.32%)
Mutual labels:  aws, cloud, puppeteer
Node Lambda Log
Basic logging mechanism for Node 6.10+ Lambda Functions
Stars: ✭ 115 (+7.48%)
Mutual labels:  aws, cloud, lambda
Cloud Custodian
Rules engine for cloud security, cost optimization, and governance, DSL in yaml for policies to query, filter, and take actions on resources
Stars: ✭ 3,926 (+3569.16%)
Mutual labels:  aws, cloud, lambda
Ccat
Cloud Container Attack Tool (CCAT) is a tool for testing security of container environments.
Stars: ✭ 300 (+180.37%)
Mutual labels:  aws, cloud, google
Infracost
Cloud cost estimates for Terraform in pull requests💰📉 Love your cloud bill!
Stars: ✭ 4,505 (+4110.28%)
Mutual labels:  aws, cloud, google
Cloudcomparer
Compare the various managed cloud services offered by the major public cloud providers in the market.
Stars: ✭ 678 (+533.64%)
Mutual labels:  aws, cloud, google
Aws Auto Cleanup
Open-source application to programmatically clean your AWS resources based on a whitelist and time to live (TTL) settings
Stars: ✭ 276 (+157.94%)
Mutual labels:  aws, cloud, lambda
Webiny Js
Enterprise open-source serverless CMS. Includes a headless CMS, page builder, form builder and file manager. Easy to customize and expand. Deploys to AWS.
Stars: ✭ 4,869 (+4450.47%)
Mutual labels:  aws, cloud, lambda
Chalice
Python Serverless Microframework for AWS
Stars: ✭ 8,513 (+7856.07%)
Mutual labels:  aws, cloud, lambda
Content Lambda Boto3
Automating AWS with Lambda, Python, and Boto3
Stars: ✭ 91 (-14.95%)
Mutual labels:  aws, lambda
Aws Lambda Vpc Nat Examples
Example of setting up AWS lambda function with VPC and NAT
Stars: ✭ 92 (-14.02%)
Mutual labels:  aws, lambda
Aws Workflows On Github
Workflows for automation of AWS services setup from Github CI/CD
Stars: ✭ 95 (-11.21%)
Mutual labels:  aws, cloud
Stepfunctions2processing
Configuration with AWS step functions and lambdas which initiates processing from activity state
Stars: ✭ 90 (-15.89%)
Mutual labels:  aws, lambda
Aws Cli Cheatsheet
☁️ AWS CLI + JQ = Make life easier
Stars: ✭ 94 (-12.15%)
Mutual labels:  aws, lambda

playwright-aws-lambda

CI NPM

Support for Playwright running on AWS Lambda and Google Cloud Functions.

NOTE: Currently only Chromium is supported.

Install

npm install playwright-core playwright-aws-lambda --save

Usage

This package works with the nodejs10.x and nodejs12.x AWS Lambda runtimes out of the box.

const playwright = require('playwright-aws-lambda');

exports.handler = async (event, context) => {
  let browser = null;

  try {
    const browser = await playwright.launchChromium();
    const context = await browser.newContext();

    const page = await context.newPage();
    await page.goto(event.url || 'https://example.com');

    console.log('Page title: ', await page.title());
  } catch (error) {
    throw error;
  } finally {
    if (browser) {
      await browser.close();
    }
  }
};

API

Method / Property Returns Description
launchChromium {!Promise<playwright.ChromiumBrowser>} Launches the Chromium browser.
loadFont(url) {Promise<void>} Downloads and activates a custom font

Loading additional fonts

If you need custom font support by e.g. emojicons in your browser, you have to load it by using the loadFont(url: string) function before you launch the browser.

await loadFont(
  'https://raw.githack.com/googlei18n/noto-emoji/master/fonts/NotoColorEmoji.ttf'
);

Thanks / Credits

This project is based on the work of chrome-aws-lambda.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].