[{"data":1,"prerenderedAt":68},["ShallowReactive",2],{"pattern-lambda-durable-bedrock-async-invoke-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":32,"level":33,"meta":34,"patternArch":35,"resources":49,"s3URL":6,"services":6,"stem":63,"testing":64,"videoId":6,"__hash__":67},"patterns\u002Fpatterns\u002Flambda-durable-bedrock-async-invoke-cdk.json","Amazon Bedrock Async Invoke with AWS Lambda durable functions",null,{"text":8},[9],"Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fben-freiberg.json","content\u002Fcontributors\u002Fmichael-gasch.json",{"text":14},[15,16],"npm install","npx cdk deploy","Orchestrate long-running Amazon Bedrock video generation jobs using AWS Lambda durable functions with waitForCondition polling and zero-cost waits","json","AWS CDK",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-durable-bedrock-async-invoke-cdk","serverless-patterns\u002Flambda-durable-bedrock-async-invoke-cdk","lambda-durable-bedrock-async-invoke-cdk","lib\u002Fcdk-bedrock-async-invoke-stack.ts",{"headline":27,"text":28},"How it works",[29,30,31],"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.","TypeScript","300",{},{"icon1":36,"icon2":41,"line1":45},{"x":37,"y":38,"service":39,"label":40},20,50,"sqs","Amazon SQS",{"x":42,"y":38,"service":43,"label":44},80,"lambda","AWS Lambda durable function",{"from":46,"to":47,"label":48},"icon1","icon2","Provisioned ESM",{"bullets":50},[51,54,57,60],{"text":52,"link":53},"AWS Lambda durable functions documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-basic-concepts.html",{"text":55,"link":56},"Durable Execution SDK","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fdurable-execution-sdk.html",{"text":58,"link":59},"Amazon Bedrock Async Invoke API reference","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002FAPIReference\u002FAPI_runtime_StartAsyncInvoke.html",{"text":61,"link":62},"AWS CDK Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Flatest\u002Fguide\u002F","patterns\u002Flambda-durable-bedrock-async-invoke-cdk",{"text":65},[66],"See the GitHub repo for detailed testing instructions.","tr8oFUSiX4eFDZJbNTnGw9o-99YUn0QKGkTDoddrk0A",1778846885953]