-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
60 lines (57 loc) · 1.36 KB
/
serverless.yml
File metadata and controls
60 lines (57 loc) · 1.36 KB
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: github-to-keybase-cloner
provider:
name: aws
runtime: nodejs8.10
region: us-east-1
variableSyntax: '\${{([\s\S]+?)}}'
iamRoleStatements:
- Effect: "Allow"
Action:
- "sqs:SendMessage"
- "sqs:GetQueueUrl"
Resource:
- Fn::Sub: "arn:aws:sqs:*:${AWS::AccountId}:*"
- Effect: "Allow"
Action:
- "sqs:ListQueues"
Resource:
- Fn::Sub: "arn:aws:sqs:*:${AWS::AccountId}:*"
functions:
githubWebhookListener:
handler: listener.githubWebhookListener
environment:
GITHUB_WEBHOOK_SECRET: kf0e69b0yshzaudycljdb
package:
exclude:
- node_modules/**
events:
- http:
path: webhook
method: post
cors: true
githubtoKeybaseCloner:
handler: cloner.githubtoKeybaseCloner
environment:
XDG_RUNTIME_DIR: /tmp
HOME: /tmp
GIT_SSH_COMMAND: "ssh -i /tmp/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
timeout: 360
memorySize: 3008
package:
include:
- .ssh/**
- gopath/**
events:
- sqs:
arn:
Fn::GetAtt:
- gitClonerQueue
- Arn
batchSize: 1
resources:
Resources:
gitClonerQueue:
Type: AWS::SQS::Queue
Properties:
VisibilityTimeout: 360
QueueName: "gitClonerQueue"