This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
serverless.yml
69 lines (65 loc) · 1.66 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
61
62
63
64
65
66
67
68
69
service: RemindMeOfThisTweet
frameworkVersion: "^2.0"
plugins:
- serverless-dotenv-plugin
- serverless-offline
provider:
name: aws
runtime: nodejs14.x
region: us-east-1
memorySize: 256
logRetentionInDays: 30
lambdaHashingVersion: 20201221
apiGateway:
shouldStartNameWithService: false
iam:
role:
statements:
- Effect: "Allow"
Action:
- "events:DeleteRule"
- "events:RemoveTargets"
- "events:PutRule"
- "events:PutTargets"
Resource:
- "*"
- Effect: Allow
Action:
- cloudwatch:PutMetricData
Resource:
- "*"
environment:
# TWITTER_CONSUMER_KEY: ${env:TWITTER_CONSUMER_KEY}
# TWITTER_CONSUMER_SECRET: ${env:TWITTER_CONSUMER_SECRET}
# TWITTER_ACCESS_TOKEN: ${env:TWITTER_ACCESS_TOKEN}
# TWITTER_ACCESS_TOKEN_SECRET: ${env:TWITTER_ACCESS_TOKEN_SECRET}
# TWITTER_SCREEN_NAME: RemindMe_OfThis
# TWITTER_CALLBACK_URL: ${env:TWITTER_CALLBACK_URL}
# REDIS_HOSTNAME: ${env:REDIS_HOSTNAME}
# REDIS_PORT: ${env:REDIS_PORT}
# REDIS_PASSWORD: ${env:REDIS_PASSWORD}
LAMBDA_FUNCTION_NAME: ${env:LAMBDA_FUNCTION_NAME}
LAMBDA_FUNCTION_ARN: ${env:LAMBDA_FUNCTION_ARN}
EXTERNAL_URL: ${env:EXTERNAL_URL}
FIREBASE_PROJECT_ID: ${env:FIREBASE_PROJECT_ID}
SENTRY_DSN: ${env:SENTRY_DSN}
NODE_ENV: ${env:NODE_ENV}
package:
patterns:
- "!*.md"
- "!assets/*.png"
- "!assets/*.ico"
- "!.*"
- "!.*/**"
- "!bin/**"
- "!tests/**"
- "!runbooks/**"
- "!awscli-bundle.zip"
- "!awscli-bundle/**"
functions:
getHomePage:
handler: homepage.getHomePage
events:
- http:
path: /
method: get