项目作者: kevsersrca

项目描述 :
AWS Selenium Lambda Layer + AWS Lambda Function Full Template
高级语言: Python
项目地址: git://github.com/kevsersrca/lambda-selenium-template.git
创建时间: 2020-04-16T08:55:16Z
项目社区:https://github.com/kevsersrca/lambda-selenium-template

开源协议:

下载


AWS Selenium Lambda Layer + AWS Lambda Function Full Template

This is an example of set up Selenium testing with AWS lambda layers Python3.6

File Structure

  1. ── /seleniumLayer/
  2. ├── /selenium
  3. └──/python/
  4. └── /lib/
  5. └── /python3.6/*
  6. ├── /chromedriver/
  7. ├── /chromedriver
  8. └── /headless-chromium
  9. └── /serverless.yaml
  10. ── /lambda/
  11. ├── /handler.py
  12. └── /serverless.yaml

Deploy Lambda Layers

Go to root directory of project

  1. $ cd seleniumLayer
  2. $ sls deploy

Deploy Lambda Function

Go to root directory of project

  1. $ cd lambda
  2. $ sls deploy

Start Testing

Go to root directory of project

  1. $ cd lambda
  2. $ sls invoke --function hello