Advertisement
uopspop

Untitled

Dec 16th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. # serverless.yml
  2. service: my-sls-scraper
  3.  
  4. provider:
  5.   name: aws
  6.   runtime: python3.7
  7.   logRetentionInDays: 1
  8.  
  9. functions:
  10.   hello:
  11.     handler: handler.hello
  12.   lambdaScrape:
  13.     handler: launcher.scrape
  14.  
  15. # We include files by whitelisting to reduce the deployment time.
  16. # Just remember to add any files you create!
  17. package:
  18.   include:
  19.     - handler.py
  20.     - launcher.py
  21.     - my_sls_scraper/**
  22.     - scrapy.cfg
  23.   exclude:
  24.     - "./**"
  25.  
  26. plugins:
  27.   - serverless-python-requirements
  28.  
  29. custom:
  30.   pythonRequirements:
  31.     slim: true # Omits tests, __pycache__, *.pyc etc from dependencies
  32.     fileName: requirements.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement