-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
60 lines (53 loc) · 1.08 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
service: advent
provider:
name: aws
runtime: python3.7
region: ap-northeast-1
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:PutObject"
- "s3:GetObject"
- "s3:ListBucket"
- "sqs:CreateQueue"
- "sqs:DeleteQueue"
- "sqs:SendMessage"
- "sqs:GetQueueUrl"
Resource: "*"
functions:
hello:
handler: handler.hello
events:
- http:
path: hello
method: get
cors: true
sendmessage:
handler: sendmessage.index
receivemessage:
handler: receivemessage.index
events:
- sqs:
arn:
Fn::Join:
- ':'
- - arn
- aws
- sqs
- Ref: AWS::Region
- Ref: AWS::AccountId
- "hogehoge-queue"
sthree-put:
handler: sthreeput.index
sthree-receive:
handler: sthreereceive.index
events:
- s3:
bucket: "sthreebucket-hogehoge"
event: s3:ObjectCreated:*
resources:
Resources:
hogehogeQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: "hogehoge-queue"