AWS Step Functions Express integration with Amazon Bedrock InvokeModel

AWS Step Functions → Amazon Bedrock

Invoke Amazon Bedrock directly from Step Functions using the native InvokeModel optimized integration. Deployed with AWS CDK.

This pattern deploys a Step Functions Express workflow that invokes Amazon Bedrock (Claude Sonnet) directly using the bedrock:InvokeModel optimized integration.
The optimized integration provides native error handling, automatic retries, and direct payload mapping without intermediate compute.
The workflow accepts a prompt string as input, sends it to Bedrock, and returns the generated response with usage metadata.
Built-in retry logic handles transient failures with exponential backoff.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/sfn-bedrock-invokemodel-cdk

Deploy

<code>cdk deploy</code>


Testing

See the README for testing instructions.

Cleanup

cdk destroy

Created by:

Nithin Chandran R

Nithin Chandran R

Technical Account Manager at AWS

Follow on LinkedIn