-
Notifications
You must be signed in to change notification settings - Fork 5
/
template.yaml
58 lines (50 loc) · 1.45 KB
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
AWS SAM template - deploys 3 lambda functions
Globals:
Function:
Timeout: 450
CodeUri: "."
Runtime: python3.6
Resources:
SrcBucket:
Type: AWS::S3::Bucket
Properties:
BucketName : s3-bucket-for-lambda-function-deployment-1976 # Actual name of bucket being created in AWS account.
QueueCuisineURLs:
Type: AWS::Serverless::Function
Properties:
Handler: src/queue_cuisine_URLs.lambda_handler
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Statement:
- Effect: "Allow"
Action:
- "sqs:*"
Resource: '*'
ScrapeHTMLPages:
Type: AWS::Serverless::Function
Properties:
Handler: src/scrape_html_links.lambda_handler
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Statement:
- Effect: "Allow"
Action:
- "s3:*"
Resource: '*'
GetContentFromS3:
Type: AWS::Serverless::Function
Properties:
Handler: src/parse_direct_URLs.lambda_handler
Policies:
- AWSLambdaExecute # Managed Policy
- Version: '2012-10-17' # Policy Document
Statement:
- Effect: "Allow"
Action:
- "s3:*"
Resource: '*'