[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-sfn-comprehend-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":33,"level":34,"meta":35,"patternArch":36,"resources":50,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fsfn-comprehend-terraform.json","AWS Step Functions integration with Amazon Comprehend using Terraform",null,{"text":8},[9],"terraform destroy --auto-approve",[11],"content\u002Fcontributors\u002Frahul-sringeri.json",{"text":13},[14,15],"terraform init","terraform apply --auto-approve","The Terraform template deploys an AWS Step Functions workflow with Amazon Comprehend and returns the sentiment analysis done by Amazon Comprehend.","json","Terraform",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsfn-comprehend-terraform","serverless-patterns\u002Fsfn-comprehend-terraform","sfn-comprehend-terraform","main.tf",{"headline":26,"text":27},"How it works",[28,29,30,31,32],"Start the Express Workflow using the start-sync-execution api command with a message string in English for sentiment analysis in the input payload.","The Express Workflow invokes Amazon Comprehend.","Comprehend returns the sentiment of the input text.","If the integration works fine, the sentiment analysis outcome 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.","Integration","200",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"sfn","AWS Step Functions",{"x":43,"y":39,"service":44,"label":45},80,"comprehend","Amazon Comprehend",{"from":47,"to":48,"label":49},"icon1","icon2","Analyze sentiment",{"bullets":51},[52,55,58],{"text":53,"link":54},"AWS Step Function - AWS SDK service integrations","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fsupported-services-awssdk.html",{"text":56,"link":57},"AWS Step Function - CloudWatch Logs","https:\u002F\u002Fdocs.aws.amazon.com\u002Fstep-functions\u002Flatest\u002Fdg\u002Fcw-logs.html",{"text":59,"link":60},"ComprehendBasicAccessPolicy","https:\u002F\u002Fdocs.aws.amazon.com\u002Fserverless-application-model\u002Flatest\u002Fdeveloperguide\u002Fserverless-policy-template-list.html#comprehend-basic-access-policy","patterns\u002Fsfn-comprehend-terraform",{"text":63},[64],"See the GitHub repo for detailed testing instructions.","dP3MJWNnqcn9Qh2I-MmUwWkcDg3_sF-v-HaYfUVzjys",1778846887794]