-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
41 lines (38 loc) · 1.15 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
39
40
41
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: >
smithy4s-sandbox
Sample SAM Template for smithy4s-sandbox
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 3
Resources:
InsertDynamoDB:
Type: AWS::Serverless::Function
Properties:
CodeUri: functions/insert-dynamodb/target/scala-3.5.2/npm-package/
Handler: index.Handler
Runtime: nodejs20.x
MemorySize: 1024
Architectures:
- x86_64
Policies:
DynamoDBCrudPolicy:
TableName: !Ref Smithy4sSandboxTable
InsertDynamoDBJar:
Type: AWS::Serverless::Function
Properties:
CodeUri: functions/insert-dynamodb-jar/target/scala-3.5.2/insert-dynamodb-jar-assembly-0.1.0-SNAPSHOT.jar
Handler: Handler::handleRequest
Runtime: java11
MemorySize: 1024
Architectures:
- x86_64
Policies:
DynamoDBCrudPolicy:
TableName: !Ref Smithy4sSandboxTable
Smithy4sSandboxTable:
Type: AWS::Serverless::SimpleTable
Properties:
TableName: Smithy4sSandboxTable