generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathlambda-durable-invoke-lambda-sam-python.json
More file actions
92 lines (92 loc) · 2.92 KB
/
lambda-durable-invoke-lambda-sam-python.json
File metadata and controls
92 lines (92 loc) · 2.92 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"title": "AWS Lambda durable function invoking an AWS Lambda Function",
"description": "Lambda durable function invokes a standard Lambda function using context.invoke() with automatic checkpointing.",
"language": "Python",
"level": "200",
"framework": "AWS SAM",
"introBox": {
"headline": "How it works",
"text": [
"This pattern deploys an AWS Lambda durable function and a standard AWS Lambda function. The durable function uses the durable execution SDK to orchestrate a workflow that prepares input data in a checkpointed step and then invokes the standard Lambda function using context.invoke().",
"The context.invoke() call creates a checkpoint so that if the durable function is interrupted after the invoked function completes, it resumes with the stored result without re-invoking the processor function.",
"This pattern deploys two Lambda functions with the required IAM permissions for durable execution and cross-function invocation."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-invoke-lambda-sam-python",
"templateURL": "serverless-patterns/lambda-durable-invoke-lambda-sam-python",
"projectFolder": "lambda-durable-invoke-lambda-sam-python",
"templateFile": "template.yaml"
}
},
"services": {
"from": {
"serviceName": "AWS Lambda",
"serviceURL": "/lambda/"
},
"to": {
"serviceName": "AWS Lambda",
"serviceURL": "/lambda/"
}
},
"patternArch": {
"icon1": {
"x": 20,
"y": 50,
"service": "lambda",
"label": "Lambda durable function"
},
"icon2": {
"x": 80,
"y": 50,
"service": "lambda",
"label": "Lambda function"
},
"line1": {
"from": "icon1",
"to": "icon2"
}
},
"resources": {
"bullets": [
{
"text": "AWS Lambda durable functions",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
},
{
"text": "Durable execution SDK for Python",
"link": "https://github.com/aws/aws-durable-execution-sdk-python"
},
{
"text": "Chained invocations across functions",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-examples.html"
}
]
},
"deploy": {
"text": [
"sam build",
"sam deploy --guided"
]
},
"testing": {
"text": [
"See the GitHub repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"Delete the stack: <code>sam delete</code>."
]
},
"authors": [
{
"name": "Sidharth Kothari",
"image": "https://drive.google.com/file/d/1sUXFJLHYuCmadcu4Q7mhb0mBnWfTcrtT/view",
"bio": "Cloud Engineer II at AWS with expertise in serverless, GenAI, event-driven and microservice-based applications",
"linkedin": "sidharthkothari"
}
],
"patternType": "Serverless"
}