summaryrefslogtreecommitdiff
path: root/cron/serverless.yml
blob: 8f15e4ab20a266e3a46d2d228bd5f1488c04e27e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
service: cron

provider:
  name: aws
  runtime: python3.6
  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)