AWS Step Functions to Amazon Bedrock Integration

AWS Step Functions → Amazon Bedrock

Step Functions workflow that invokes Amazon Bedrock Anthropic Claude Model

Start the Express Workflow using the `start-sync-execution` api command with a prompt string in English for generating content as per the input payload.
The Express Workflow invokes Amazon Bedrock Anthropic Claude v2.1 Model with the prompt.
Amazon Bedrock returns the generated content as the given promptsentiment of the input text.
If the integration works fine, the generated content is returned in Step Function execution results within a output object.
If the integration fails, the Step Functions workflow will retry up to 5 times before exiting with a status:FAILED response.

< 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/stepfunctions-bedrock-sam

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

Biswanath Mukherjee

Biswanath Mukherjee

Sr. Solutions Architect working at AWS India.

Follow on LinkedIn