-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
template.yml
36 lines (35 loc) · 1.16 KB
/
template.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
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: >
sam-app
Template for lambda
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
# I don't know what this is
Timeout: 30
Layers:
- !Ref DepLayer
Resources:
ScrapeFunction:
Type: AWS::Serverless::Function
# More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
Properties:
CodeUri: 'src/'
Handler: lambda_function.lambda_handler
Runtime: python3.9
FunctionName: webScrapersProd
# Environment:
# More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
# Events:
Policies:
- AmazonDynamoDBFullAccess
DepLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: scraper-dependencies
Description: Dependencies for scraper
ContentUri: dependencies/
CompatibleRuntimes:
- python3.9
RetentionPolicy: Delete