-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
57 lines (56 loc) · 1.87 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An AWS Serverless Specification template describing your function.
Resources:
worker:
Type: 'AWS::Serverless::Function'
Properties:
Handler: aed_batch.handler
Runtime: python3.6
CodeUri: functions/worker
Description: Detects audio events in a batch of recordings
MemorySize: 1024
Timeout: 900
Role: 'arn:aws:iam::584765855847:role/service-role/SieveLambda'
VpcConfig:
SecurityGroupIds:
- sg-0d6bbaa8d86af7842
SubnetIds:
- subnet-d27d898b
- subnet-d44d37b1
- subnet-00a2b628
- subnet-5163a926
- subnet-cf4c2ef5
- subnet-58c35054
Environment:
Variables:
AWS_SECRET: DEV
RECBUCKET: arbimon2
WRITEBUCKET: ml-specs
Layers:
- 'arn:aws:lambda:us-east-1:584765855847:layer:sqlalchemy:1'
- 'arn:aws:lambda:us-east-1:668099181075:layer:AWSLambda-Python36-SciPy1x:2'
- 'arn:aws:lambda:us-east-1:584765855847:layer:tm_layer:2'
- 'arn:aws:lambda:us-east-1:584765855847:layer:libsndfile:5'
- 'arn:aws:lambda:us-east-1:584765855847:layer:soundfile:4'
conductor:
Type: 'AWS::Serverless::Function'
Properties:
Handler: main.driver
Runtime: python3.6
CodeUri: functions/conductor
Description: Initiates audio event detection worker instances
MemorySize: 512
Timeout: 600
Role: 'arn:aws:iam::584765855847:role/service-role/SieveLambda'
VpcConfig:
SecurityGroupIds:
- sg-0d6bbaa8d86af7842
SubnetIds:
- subnet-0c8a25e65ccd76b26
- subnet-0d5b504a641e86d5d
Environment:
Variables:
AWS_SECRET: DEV
Layers:
- 'arn:aws:lambda:us-east-1:584765855847:layer:sqlalchemy:1'