-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.yml
More file actions
28 lines (28 loc) · 803 Bytes
/
template.yml
File metadata and controls
28 lines (28 loc) · 803 Bytes
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Small AWS Lambda Demo Template.
Resources:
bucket:
Type: AWS::S3::Bucket
function:
Type: AWS::Serverless::Function
Properties:
CodeUri: build/distributions/lambda-demo-1.0-SNAPSHOT.zip
Handler: com.hft.example.LambdaHandler
Runtime: java11
Description: Java function
MemorySize: 256
Timeout: 60
Policies:
- AWSLambdaBasicExecutionRole
- AWSLambda_ReadOnlyAccess
- AWSXrayWriteOnlyAccess
- AWSLambdaVPCAccessExecutionRole
- AmazonS3FullAccess
Tracing: Active
Events:
s3Notification:
Type: S3
Properties:
Bucket: !Ref bucket
Events: s3:ObjectCreated:*