summaryrefslogtreecommitdiff
path: root/cron/serverless.yml
blob: be3d9ac7b3fc846c46493391a89c3e6607641de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
service: geshem

provider:
  name: aws
  runtime: python3.8
  region: eu-west-1
  memorySize: 128
  timeout: 20
  iamRoleStatements:
    - Effect: "Allow"
      Action: "s3:*"
      Resource: "arn:aws:s3:::imgs.geshem.space/*"
    - Effect: "Allow"
      Action: "s3:*"
      Resource: "arn:aws:s3:::imgs.geshem.space"

functions:
  update:
    handler: handler.update
    events:
      - schedule: rate(1 minute)
    package:
      include:
        - venv/lib/python3.8/site-packages/**

plugins:
  - serverless-python-requirements