-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.yaml
More file actions
32 lines (30 loc) · 799 Bytes
/
template.yaml
File metadata and controls
32 lines (30 loc) · 799 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
29
30
31
32
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: SAM template for running R on Lambda via rpy2 and lambdr
Globals:
Function:
MemorySize: 512
Timeout: 15
Resources:
RPy2Function:
Type: AWS::Serverless::Function
Properties:
FunctionName: r-lambda-demo-rpy2
PackageType: Image
ImageConfig:
Command: ["app.lambda_handler"]
Metadata:
Dockerfile: Dockerfile
DockerContext: ./rpy2
DockerTag: python3.10-rpy2
LambdRFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: r-lambda-demo-lambdr
PackageType: Image
ImageConfig:
Command: ["parity"]
Metadata:
Dockerfile: Dockerfile
DockerContext: ./lambdr
DockerTag: lambdr