-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtemplate.yaml
39 lines (32 loc) · 1.02 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Metadata:
AWS::ServerlessRepo::Application:
Name: lambda-s3-zip
Description: Lambda function that compressess a given S3 file and saves the output back to S3
Author: Nestor Carvantes
SpdxLicenseId: MIT
LicenseUrl: LICENSE
ReadmeUrl: README.md
Labels: ['lambda', 's3', 'zip', 'compress']
HomePageUrl: https://github.com/carvantes/lambda-s3-zip
SemanticVersion: 0.1.0
SourceCodeUrl: https://github.com/carvantes/lambda-s3-zip
Resources:
lambdaS3Zip:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/
Handler: app.lambdaHandler
Runtime: nodejs8.10
Timeout: 300
MemorySize: 1024
Policies:
- AWSLambdaExecute
Outputs:
lambdaS3Zip:
Description: "Lambda Function Name"
Value: !Ref lambdaS3Zip
lambdaS3ZipArn:
Description: "Lambda Function ARN"
Value: !GetAtt lambdaS3Zip.Arn