-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathexample-pattern.json
More file actions
71 lines (71 loc) · 2.77 KB
/
example-pattern.json
File metadata and controls
71 lines (71 loc) · 2.77 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
{
"title": "Amazon Bedrock Async Invoke with AWS Lambda durable functions",
"description": "Orchestrate long-running Amazon Bedrock video generation jobs using AWS Lambda durable functions with waitForCondition polling and zero-cost waits",
"language": "TypeScript",
"level": "300",
"framework": "AWS CDK",
"introBox": {
"headline": "How it works",
"text": [
"This pattern deploys an AWS Lambda durable function that orchestrates Amazon Bedrock Async Invoke to generate AI videos using Amazon Nova Reel.",
"The durable function starts a video generation job with StartAsyncInvoke, then polls for completion using waitForCondition with exponential backoff. During each polling interval the function suspends entirely, incurring zero compute charges while Bedrock processes the video.",
"An S3 bucket is provisioned for video output. The durable execution SDK checkpoints progress at each step, so the workflow is fault-tolerant and idempotent without requiring external orchestration."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/lambda-durable-bedrock-async-invoke-cdk",
"templateURL": "serverless-patterns/lambda-durable-bedrock-async-invoke-cdk",
"projectFolder": "lambda-durable-bedrock-async-invoke-cdk",
"templateFile": "lib/cdk-bedrock-async-invoke-stack.ts"
}
},
"resources": {
"bullets": [
{
"text": "AWS Lambda durable functions documentation",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-basic-concepts.html"
},
{
"text": "Durable Execution SDK",
"link": "https://docs.aws.amazon.com/lambda/latest/dg/durable-execution-sdk.html"
},
{
"text": "Amazon Bedrock Async Invoke API reference",
"link": "https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_StartAsyncInvoke.html"
},
{
"text": "AWS CDK Developer Guide",
"link": "https://docs.aws.amazon.com/cdk/latest/guide/"
}
]
},
"deploy": {
"text": [
"npm install",
"npx cdk deploy"
]
},
"testing": {
"text": [
"See the GitHub repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"Delete the stack: <code>npx cdk destroy</code>."
]
},
"authors": [
{
"name": "Ben Freiberg",
"image": "https://serverlessland.com/assets/images/resources/contributors/ben-freiberg.jpg",
"bio": "Ben is a Senior Solutions Architect at Amazon Web Services (AWS) based in Frankfurt, Germany.",
"linkedin": "benfreiberg"
},{
"name": "Michael Gasch",
"bio": "Michael is a Senior Product Manager at Amazon Web Services (AWS) based in Germany.",
"linkedin": "michael-gasch"
}
]
}