Skip to content

Commit ba19a31

Browse files
authored
publishing file
1 parent f5ad4a6 commit ba19a31

1 file changed

Lines changed: 87 additions & 0 deletions

File tree

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"title": "AWS Lambda durable functions to Amazon ECS with Python",
3+
"description": "Invoke ECS tasks from Lambda durable functions with automatic checkpointing, state management, and resilient execution patterns",
4+
"language": "Python",
5+
"level": "300",
6+
"framework": "AWS SAM",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"This pattern demonstrates AWS Lambda durable functions invoking Amazon ECS tasks with resilient, long-running execution capabilities:",
11+
"1. Durable Synchronous Pattern: Lambda uses checkpointed steps and durable waits to poll ECS task status. Can run for up to 1 year with automatic recovery from failures. No compute charges during wait periods.",
12+
"2. Durable Callback Pattern: Lambda uses checkpointed steps to reliably initiate ECS tasks. Each step (create record, start task, update status) is automatically checkpointed for guaranteed execution.",
13+
"The pattern uses the AWS Durable Execution SDK for Python, providing automatic state management, checkpoint-based recovery, and cost-effective long-running workflows. Includes inline Python code in ECS containers, and VPC networking,"
14+
]
15+
},
16+
"gitHub": {
17+
"template": {
18+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-ecs-durable-python-sam",
19+
"templateURL": "serverless-patterns/lambda-ecs-durable-python-sam",
20+
"projectFolder": "lambda-ecs-durable-python-sam",
21+
"templateFile": "template.yaml"
22+
}
23+
},
24+
"resources": {
25+
"bullets": [
26+
{
27+
"text": "Lambda durable functions",
28+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
29+
},
30+
{
31+
"text": "Durable Execution SDK",
32+
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-execution-sdk.html"
33+
},
34+
{
35+
"text": "Run Amazon ECS or Fargate tasks",
36+
"link": "https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_run_task.html"
37+
},
38+
{
39+
"text": "Amazon ECS Task Definitions",
40+
"link": "https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html"
41+
}
42+
]
43+
},
44+
"deploy": {
45+
"text": [
46+
"sam build",
47+
"sam deploy --guided"
48+
]
49+
},
50+
"testing": {
51+
"text": [
52+
"See the GitHub repo for detailed testing instructions."
53+
]
54+
},
55+
"cleanup": {
56+
"text": [
57+
"Delete the stack: <code>sam delete</code>"
58+
]
59+
},
60+
"authors": [
61+
{
62+
"name": "Mian Tariq",
63+
"image": "",
64+
"bio": "Senior Delivery Consultant",
65+
"linkedin": "mian-tariq"
66+
}
67+
],
68+
"patternArch": {
69+
"icon1": {
70+
"x": 20,
71+
"y": 50,
72+
"service": "lambda",
73+
"label": "AWS Lambda durable function"
74+
},
75+
"icon2": {
76+
"x": 80,
77+
"y": 50,
78+
"service": "ecs",
79+
"label": "Amazon ECS"
80+
},
81+
"line1": {
82+
"from": "icon1",
83+
"to": "icon2",
84+
"label": "Sync or Callback"
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)