-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yml
40 lines (39 loc) · 1.22 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: An AWS Lambda application that calls the Lambda API.
Resources:
function:
Type: AWS::Serverless::Function
Properties:
CodeUri: build/distributions/blockchainLambda.zip
Handler: example.HandlerIntegerJava17
Runtime: java17
Description: Java function
MemorySize: 2048
Timeout: 10
# Function's execution role
Policies:
- AWSLambdaBasicExecutionRole
- AWSLambda_ReadOnlyAccess
- AWSXrayWriteOnlyAccess
- AWSLambdaVPCAccessExecutionRole
Tracing: Active
function2:
Type: AWS::Serverless::Function
Properties:
CodeUri: build/distributions/blockchainLambda.zip
Handler: com.smofs.handlers.HandleSmofML
Runtime: java17
Description: Java function
MemorySize: 2048
Timeout: 10
# Function's execution role
Policies:
- AWSLambdaBasicExecutionRole
- AWSLambda_ReadOnlyAccess
- AWSXrayWriteOnlyAccess
- AWSLambdaVPCAccessExecutionRole
- SecretsManagerReadWrite
- AmazonManagedBlockchainConsoleFullAccess
- AmazonManagedBlockchainFullAccess
Tracing: Active