-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
47 lines (41 loc) · 965 Bytes
/
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
service: rss-feeds
useDotenv: true
provider:
name: aws
stage: ${opt:stage, "live"}
runtime: python3.12
runtimeManagement: auto
versionFunctions: false
architecture: x86_64
region: ${opt:region, "eu-north-1"}
memorySize: 256
timeout: 15
logRetentionInDays: 90
environment:
RSS_FEED_URLS: ${env:RSS_FEED_URLS}
BUCKET_NAME: ${env:BUCKET_NAME}
SNS_TOPIC_ARN: ${env:SNS_TOPIC_ARN}
functions:
handler:
handler: handler.handler
role: !Sub arn:aws:iam::${AWS::AccountId}:role/RSSFeedLambdaFunctionRole
events:
- schedule: cron(0 5 * * ? *)
plugins:
- serverless-python-requirements
- serverless-dotenv-plugin
custom:
pythonRequirements:
dockerizePip: true
fileName: requirements.txt
package:
patterns:
- "!node_modules/**"
- "!.github/**"
- "!.vscode"
- "!cloudformation"
- "!.env*"
- "!requirements.txt"
- "!package.json"
- "!package-lock.json"
- "!README.md"