-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yaml
36 lines (36 loc) · 1.04 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Resources:
SearchWorker:
Type: 'AWS::Serverless::Function'
Properties:
Runtime: python3.6
Handler: SearchWorker.lambda_handler
CodeUri:
Bucket: postcore-bucket
Key: !Sub "Postcore.SearchApi/SearchWorker.zip"
MemorySize: 128
Timeout: 3
Role: arn:aws:iam::489967615225:role/lambda-basic-execution-role
Events:
PostcoreApiSns:
Type: SNS
Properties:
Topic: arn:aws:sns:us-west-2:489967615225:postcore-api
SearchApi:
Type: 'AWS::Serverless::Function'
Properties:
Runtime: python3.6
Handler: SearchApi.lambda_handler
CodeUri:
Bucket: postcore-bucket
Key: !Sub "Postcore.SearchApi/SearchApi.zip"
MemorySize: 128
Timeout: 3
Role: arn:aws:iam::489967615225:role/lambda-basic-execution-role
Events:
PostcoreSearchApi:
Type: Api
Properties:
Path: /{q}
Method: get