forked from paonets/skooldio-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
31 lines (29 loc) · 880 Bytes
/
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
AWSTemplateFormatVersion: 2010-09-09
Transform:
- AWS::Serverless-2016-10-31
Globals:
Function:
Runtime: nodejs8.10
Timeout: 120
MemorySize: 512
Environment:
Variables:
NODE_ENV: production
Resources:
FaceSearchApi:
Type: AWS::Serverless::Function
Properties:
Handler: # TODO: Add handler
CodeUri: # TODO: Add CodeUri
Environment:
# TODO: Add environment variable for S3
Policies:
- AWSLambdaBasicExecutionRole
# TODO: Add more policies
Events:
# TODO: Add events
FaceImageBucket:
Type: AWS::S3::Bucket
Properties:
# Need to specify bucket name to avoid circular dependency. See https://aws.amazon.com/blogs/infrastructure-and-automation/handling-circular-dependency-errors-in-aws-cloudformation/
BucketName: !Sub "face-image-bucket-${AWS::AccountId}"