Parallel Translate Text

Translate Text in Parallel and save to DynamoDB

This application will create a State Machine and a DynamoDB Table. The State Machine will accept text from any language and will call out to Amazon Translate service API to convert to Spanish, French, and Japanese in parallel. Once all translated values are returned the output array is parsed into a JSON object and a Put request is sent to DynamoDB for later use. The UUID instrinsic function is used as a key for the DyanmoDB item.

Launch Stack
< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/parallel-translate/cd step-functions-workflows-collection/parallel-translate

Deploy

sam buildsam deploy --guided


Testing

1. Run AWS CLI Command: aws stepfunctions start-execution --state-machine-arn arn:aws:states:::stateMachine:TranslateText --input file://test-data.json

Cleanup

1. Delete the stack: sam delete.

Additional resources

Created by:

Jacob Cravinho

Jacob Cravinho

Jacob is a Sr. Solutions Architect who loves a challenge & is always in search of the next great meal!

Follow on LinkedIn