-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml.dist
89 lines (83 loc) · 1.86 KB
/
serverless.yml.dist
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
service:
name: gatekeeper
plugins:
- serverless-webpack
- serverless-offline
provider:
name: aws
runtime: nodejs8.10
stage: ENVIRONMENT_PLACEHOLDER
region: REGION_PLACEHOLDER
iamManagedPolicies:
- POLICY_PLACEHOLDER
environment:
TABLE_NAME: TABLE_NAME_PLACEHOLDER
ENVIRONMENT: ENVIRONMENT_PLACEHOLDER
SECRET_KEY: SECRET_KEY_PLACEHOLDER
REDIS_URL: REDIS_URL_PLACEHOLDER
REDIS_PORT: REDIS_PORT_PLACEHOLDER
webpack:
webpackConfig: 'webpack.config.js' # Name of webpack configuration file
includeModules:
packagePath: './package.json' # Node modules configuration for packaging
packager: 'npm' # P
package:
exclude:
- .idea/**
- .serverless/**
- test/**
- venv/**
- requirements.txt
- serverless.yml
- serverless.yml.dist
- node_modules/**
- README.md
- LICENSE.txt
- gatekeeper.iml
- setup.py
- .gitignore/**
- .nyc_output/**
- .webpack/**
- activate/**
- coverage/**
- .env
include:
- src/handler.ts
- node_modules/**/*
custom:
webpack:
webpackConfig: 'webpack.config.js'
includeModules: true
package:
individually: true
functions:
login:
handler: src/handler.login
events:
- http:
method: post
path: /gatekeeper/login
logout:
handler: src/handler.logout
events:
- http:
method: get
path: /gatekeeper/logout
resources:
Resources:
GatekeeperDynamoDbTable:
Type: 'AWS::DynamoDB::Table'
DeletionPolicy: Retain
Properties:
AttributeDefinitions:
-
AttributeName: id
AttributeType: S
KeySchema:
-
AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: 'TABLE_NAME_PLACEHOLDER'