-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
39 lines (39 loc) · 937 Bytes
/
serverless.yml
File metadata and controls
39 lines (39 loc) · 937 Bytes
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
service: deploy
provider:
name: aws
runtime: go1.x
layers:
- !Ref ToolsLambdaLayer
iamRoleStatements:
- Effect: Allow
Action: lambda:InvokeFunction
Resource: !Join [':', ['arn', 'aws', 'lambda', '${self:provider.region}', !Ref 'AWS::AccountId', 'function', '${self:service}-${self:provider.stage}-*']]
environment:
DEPLOY_FUNCTION: ${self:service}-${self:provider.stage}-deploy
LANG: en_US.UTF-8 # Building the site fails without this.
WEBHOOK_SECRET: ${env:WEBHOOK_SECRET}
package:
exclude:
- ./**
include:
- ./bin/*
- ./ssh.zip
layers:
tools:
name: ${self:service}-${self:provider.stage}-tools
path: ./layer
package:
exclude:
- ./**
include:
- ./bin/**
- ./lib/**
functions:
webhook:
handler: ./bin/webhook
events:
- http: POST /deploy
deploy:
handler: ./bin/deploy
timeout: 900
memorySize: 3008