-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
52 lines (47 loc) · 1.31 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
Example basic lambda using `holy-lambda` micro library
Parameters:
Timeout:
Type: Number
Default: 40
MemorySize:
Type: Number
Default: 512
Entrypoint:
Type: String
Default: com.company.lambda-steps.core
Globals:
Function:
Timeout: !Ref Timeout
MemorySize: !Ref MemorySize
Environment:
Variables:
HL_ENTRYPOINT: !Ref Entrypoint
Resources:
ExampleLambdaFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: ExampleLambdaFunction
PackageType: Image
#Handler: com.company.lambda-steps.core.ExampleLambda
#CodeUri: .holy-lambda/build/latest.zip
# For docker based deployments use:
# PackageType: Image
# and remove Runtime + CodeUri + Handler
# For docker based deployments
Metadata:
Dockerfile: Dockerfile
DockerContext: .
DockerTag: v1
ExampleStateMachine:
Type: AWS::Serverless::StateMachine
Properties:
Name: ExampleStepFunction
DefinitionUri: statemachine/example.asl.json
DefinitionSubstitutions:
ExampleLambdaFunctionArn: !GetAtt ExampleLambdaFunction.Arn
Policies:
- LambdaInvokePolicy:
FunctionName: !Ref ExampleLambdaFunction