Skip to content

Instantly share code, notes, and snippets.

@andrewm4894
Created September 4, 2019 19:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save andrewm4894/aa98b3fad0b4b001ab85719b88b7878b to your computer and use it in GitHub Desktop.
service: serverless-learn-lambda
provider:
name: aws
runtime: python3.6
region: us-west-2
stage: dev
role: arn:aws:iam::XXX:role/serverless-lambda
functions:
myCron:
handler: handler.run
events:
- schedule: rate(1 hour)
layers:
- arn:aws:lambda:us-west-2:XXX:layer:my-aws-python-packages:1
package:
exclude:
- __pycache__/**
- "*.ipynb"
- .ipynb_checkpoints/**
- "*.md"
- venv/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment