Skip to content

Commit c7f4768

Browse files
authored
Create appsync-events-bedrock-cdk.json
1 parent 3c85a81 commit c7f4768

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"title": "Stream Amazon Bedrock completions via AWS AppSync Events API",
3+
"description": "Leverage AppSync Events API to stream completions from Amazon Bedrock.",
4+
"language": "TypeScript",
5+
"level": "200",
6+
"framework": "CDK",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"In this pattern the end user is able to provide a prompt that will be used to invoke an Amazon Bedrock model from via a Lambda middleware.",
11+
"The client will receive the model's completions through WebSocket provided by AppSync Events."
12+
]
13+
},
14+
"gitHub": {
15+
"template": {
16+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/appsync-events-bedrock-cdk",
17+
"templateURL": "serverless-patterns/appsync-events-bedrock-cdk",
18+
"projectFolder": "appsync-events-bedrock-cdk",
19+
"templateFile": "lib/appsync-events-bedrock-cdk-stack.ts"
20+
}
21+
},
22+
"resources": {
23+
"bullets": [
24+
{
25+
"text": "AppSync Events API",
26+
"link": "https://docs.aws.amazon.com/appsync/latest/eventapi/event-api-welcome.html"
27+
},
28+
{
29+
"text": "Amazon Bedrock - Generative AI",
30+
"link": "https://aws.amazon.com/bedrock/"
31+
},
32+
{
33+
"text": "Bedrock's Response Stream API",
34+
"link": "https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_InvokeModelWithResponseStream.html"
35+
}
36+
]
37+
},
38+
"deploy": {
39+
"text": [
40+
"npm run deploy"
41+
]
42+
},
43+
"testing": {
44+
"text": [
45+
"npm run test"
46+
]
47+
},
48+
"cleanup": {
49+
"text": [
50+
"cdk destroy"
51+
]
52+
},
53+
"authors": [
54+
{
55+
"name": "Gabriele Biagini",
56+
"bio": "Solutions Architect @ AWS",
57+
"linkedin": "gbiagini97"
58+
}
59+
],
60+
"patternArch": {
61+
"icon1": {
62+
"x": 20,
63+
"y": 50,
64+
"service": "apigw",
65+
"label": "Amazon API Gateway"
66+
},
67+
"icon2": {
68+
"x": 50,
69+
"y": 50,
70+
"service": "lambda",
71+
"label": "AWS Lambda"
72+
},
73+
"icon3": {
74+
"x": 80,
75+
"y": 50,
76+
"service": "bedrock",
77+
"label": "Amazon Bedrock"
78+
},
79+
"line1": {
80+
"from": "icon1",
81+
"to": "icon2",
82+
"label": "WebSocket"
83+
},
84+
"line2": {
85+
"from": "icon2",
86+
"to": "icon3",
87+
"label": ""
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)