-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathtemplate.yaml
More file actions
29 lines (26 loc) · 867 Bytes
/
template.yaml
File metadata and controls
29 lines (26 loc) · 867 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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: Saga pattern implementation using AWS Lambda durable functions in Node.js
Resources:
SagaOrchestratorFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/orchestrator/
Handler: index.handler
Runtime: nodejs22.x
Timeout: 900
MemorySize: 512
AutoPublishAlias: prod
DurableConfig:
ExecutionTimeout: 3600
RetentionPeriodInDays: 7
Environment:
Variables:
LOG_LEVEL: INFO
Outputs:
SagaOrchestratorFunction:
Description: Saga Orchestrator Lambda Function ARN
Value: !GetAtt SagaOrchestratorFunction.Arn
SagaOrchestratorFunctionAlias:
Description: Saga Orchestrator Function Alias (use this for invocation)
Value: !Sub '${SagaOrchestratorFunction}:prod'