summaryrefslogtreecommitdiff
path: root/cron/serverless.yml
blob: 141e7e414e8befb6da17d81c4e3edab1b4ecb698 (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
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)

plugins:
  - serverless-python-requirements