forked from IIIF/s3-sitemap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
43 lines (39 loc) · 998 Bytes
/
serverless.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
service: s3-sitemap
frameworkVersion: '3'
provider:
name: aws
runtime: python3.8
deploymentBucket:
name: iiif-serverless-s3-sitemap
iam:
role:
statements:
- Effect: 'Allow'
Action:
- 's3:*Object*'
Resource:
- 'arn:aws:s3:::iiif-website/*'
- 'arn:aws:s3:::training.iiif.io/*'
- Effect: 'Allow'
Action:
- 's3:ListBucket'
Resource:
- 'arn:aws:s3:::iiif-website'
- 'arn:aws:s3:::training.iiif.io'
- Effect: 'Allow'
Action:
- 'logs:CreateLogStream'
- 'logs:CreateLogGroup'
- 'logs:PutLogEvents'
Resource:
- 'arn:aws:logs:us-east-1:420715881449:log-group:/aws/lambda/s3-sitemap:*'
functions:
sitemap:
handler: sitemap.update
events:
- httpApi:
path: /
method: post
plugins:
- serverless-offline
- serverless-python-requirements