Skip to content

Commit b6f5be7

Browse files
Create sfn-comprehend-terraform.json
1 parent 66e4edb commit b6f5be7

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"title": "AWS Step Functions integration with Amazon Comprehend using terraform",
3+
"description": "The Terraform template deploys an AWS Step Functions workflow with Amazon Comprehend and returns the sentiment analysis done by Amazon Comprehend.",
4+
"language": "",
5+
"level": "200",
6+
"framework": "Terraform",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"Start the Express Workflow using the start-sync-execution api command with a message string in English for sentiment analysis in the input payload.",
11+
"The Express Workflow invokes Amazon Comprehend.",
12+
"Comprehend returns the sentiment of the input text.",
13+
"If the integration works fine, the sentiment analysis outcome is returned in Step Function execution results within a output object.",
14+
"If the integration fails, the Step Functions workflow will retry up to 5 times before exiting with a status:FAILED response."
15+
]
16+
},
17+
"gitHub": {
18+
"template": {
19+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/sfn-comprehend-terraform",
20+
"templateURL": "serverless-patterns/sfn-comprehend-terraform",
21+
"projectFolder": "sfn-comprehend-terraform",
22+
"templateFile": "main.tf"
23+
}
24+
},
25+
"resources": {
26+
"bullets": [
27+
{
28+
"text": "AWS Step Function - AWS SDK service integrations",
29+
"link": "https://docs.aws.amazon.com/step-functions/latest/dg/supported-services-awssdk.html"
30+
},
31+
{
32+
"text": "AWS Step Function - CloudWatch Logs",
33+
"link": "https://docs.aws.amazon.com/step-functions/latest/dg/cw-logs.html"
34+
},
35+
{
36+
"text": "ComprehendBasicAccessPolicy",
37+
"link": "https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-policy-template-list.html#comprehend-basic-access-policy"
38+
}
39+
]
40+
},
41+
"deploy": {
42+
"text": [
43+
"terraform init",
44+
"terraform apply --auto-approve"
45+
]
46+
},
47+
"testing": {
48+
"text": [
49+
"See the GitHub repo for detailed testing instructions."
50+
]
51+
},
52+
"cleanup": {
53+
"text": [
54+
"terraform destroy --auto-approve"
55+
]
56+
},
57+
"authors": [
58+
{
59+
"name": "Rahul Sringeri",
60+
"image": "",
61+
"bio": "Technical Account Manager at AWS EMEA for Strategic Accounts",
62+
"linkedin": ""
63+
}
64+
],
65+
"patternArch": {
66+
"icon1": {
67+
"x": 20,
68+
"y": 50,
69+
"service": "sfn",
70+
"label": "AWS Step Functions"
71+
},
72+
"icon2": {
73+
"x": 80,
74+
"y": 50,
75+
"service": "comprehend",
76+
"label": "Amazon Comprehend"
77+
},
78+
"line1": {
79+
"from": "icon1",
80+
"to": "icon2",
81+
"label": "Analyze sentiment"
82+
}
83+
}
84+
}

0 commit comments

Comments
 (0)