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