-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeeplens-hack-output.yaml
73 lines (73 loc) · 2.09 KB
/
deeplens-hack-output.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
AWSTemplateFormatVersion: '2010-09-09'
Description: Outputs the JPEG bits to a FIFO file on AWS DeepLens
Resources:
DeeplensHackBucket:
Properties:
AccessControl: BucketOwnerFullControl
BucketName:
Fn::Join:
- ''
- - deeplens-hack-
- Ref: AWS::AccountId
Type: AWS::S3::Bucket
RekognizeFacesDDB:
Properties:
AttributeDefinitions:
- AttributeName: s3key
AttributeType: S
KeySchema:
- AttributeName: s3key
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: '5'
WriteCapacityUnits: '5'
TableName: recognize-faces
Type: AWS::DynamoDB::Table
deeplensFaceDetection:
Properties:
CodeUri: s3://deeplens-face-detection/a81b9438deaf80a5c500ca5307f46368
Description: Outputs the JPEG bits to a FIFO file on AWS DeepLens
Handler: greengrass_face_detection.function_handler
MemorySize: 1536
Role:
Fn::Join:
- ''
- - 'arn:aws:iam::'
- Ref: AWS::AccountId
- :role/AWSDeepLensLambdaRole
Runtime: python2.7
Timeout: 3
Type: AWS::Serverless::Function
rekognizeEmotions:
Properties:
CodeUri: s3://deeplens-face-detection/a81b9438deaf80a5c500ca5307f46368
Description: An Amazon S3 trigger that uses rekognition APIs to detect faces
Events:
BucketEvent1:
Properties:
Bucket:
Ref: DeeplensHackBucket
Events:
- s3:ObjectCreated:*
Filter:
S3Key:
Rules:
- Name: prefix
Value: faces/
- Name: suffix
Value: jpg
Type: S3
Handler: lambda_function.lambda_handler
MemorySize: 128
Role:
Fn::Join:
- ''
- - 'arn:aws:iam::'
- Ref: AWS::AccountId
- :role/service-role/rekognize-faces-role
Runtime: python2.7
Tags:
lambda-console:blueprint: rekognition-python
Timeout: 3
Type: AWS::Serverless::Function
Transform: AWS::Serverless-2016-10-31