-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathexample-pattern.json
More file actions
64 lines (64 loc) · 2.02 KB
/
example-pattern.json
File metadata and controls
64 lines (64 loc) · 2.02 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
{
"title": "AWS Lambda durable function - REST API Call",
"description": "A Lambda function that calls an external REST API using AWS durable execution SDK for automatic retries and state management.",
"language": "Python",
"level": "200",
"framework": "SAM",
"introBox": {
"headline": "How it works",
"text": [
"This pattern demonstrates AWS Lambda durable functions for calling external REST APIs.",
"Uses the @durable_step decorator to make the REST API call automatically retryable.",
"Uses the @durable_execution decorator to mark the Lambda handler as a durable workflow.",
"AWS automatically handles failures, retries, and state persistence without external services."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-rest-api-sam-py",
"templateURL": "serverless-patterns/lambda-durable-rest-api-sam-py",
"projectFolder": "lambda-durable-rest-api-sam-py",
"templateFile": "template.yaml"
}
},
"resources": {
"bullets": [
{
"text": "AWS Lambda durable execution",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-functions.html"
},
{
"text": "AWS Lambda Developer Guide",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/welcome.html"
},
{
"text": "Python Requests Library",
"link": "https://requests.readthedocs.io/"
}
]
},
"deploy": {
"text": [
"sam build",
"sam deploy --guided"
]
},
"testing": {
"text": [
"See the GitHub repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"Delete the stack: <code>aws cloudformation delete-stack --stack-name STACK_NAME</code>."
]
},
"authors": [
{
"name": "Theophilus Ajayi",
"image": "https://drive.google.com/file/d/1hUrUxWk2JqDTbPhl0DgUeUVd2uFWnAby/view?usp=drivesdk",
"bio": "Technical Account Manager @ AWS",
"linkedin": "tolutheo"
}
]
}