Skip to content

Commit 8e7718b

Browse files
authored
publishing file
1 parent 7602765 commit 8e7718b

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"title": "Serverless Generative AI with Amazon Bedrock Nova Micro",
3+
"description": "This pattern demonstrates how to create a serverless API leveraging Amazon Bedrock Nova Micro through AWS Lambda.",
4+
"language": "Python",
5+
"level": "200",
6+
"framework": "Terraform",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"An Amazon API Gateway REST endpoint accepts POST requests containing prompts. These requests are automatically routed to an AWS Lambda function, which processes the input and interacts with Amazon Bedrock Nova Micro.",
11+
"The Lambda function formats the request according to the model's requirements, invokes the model, and returns the generated response through API Gateway. This serverless architecture ensures scalability and cost-effectiveness, as you only pay for actual API calls and compute time."
12+
]
13+
},
14+
"gitHub": {
15+
"template": {
16+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-lambda-bedrock-nova-terraform",
17+
"templateURL": "apigw-lambda-bedrock-nova-terraform",
18+
"projectFolder": "apigw-lambda-bedrock-nova-terraform",
19+
"templateFile": "main.tf"
20+
}
21+
},
22+
"resources": {
23+
"bullets": [
24+
{
25+
"text": "Amazon API Gateway REST APIs",
26+
"link": "https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html"
27+
},
28+
{
29+
"text": "AWS Lambda Function Integration",
30+
"link": "https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-lambda-integration.html"
31+
},
32+
{
33+
"text": "Amazon Bedrock Nova Models",
34+
"link": "https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-nova.html"
35+
}
36+
]
37+
},
38+
"deploy": {
39+
"text": [
40+
"terraform init",
41+
"terraform plan",
42+
"terraform apply"
43+
]
44+
},
45+
"testing": {
46+
"text": [
47+
"Test the API endpoint using curl:",
48+
"<code>curl -X POST -H \"Content-Type: application/json\" -d '{\"prompt\": \"What are the key benefits of using AWS services?\"}' https://YOUR-API-ENDPOINT/dev/generate_content<code>",
49+
""
50+
]
51+
},
52+
"cleanup": {
53+
"text": [
54+
"<code>terraform destroy<code>",
55+
"<code>terraform show<code>"
56+
]
57+
},
58+
"authors": [
59+
{
60+
"name": "Naresh Rajaram",
61+
"image": "",
62+
"bio": "Senior Partner Solutions Architect, AWS",
63+
"linkedin": "nareshrajaram"
64+
}
65+
],
66+
"patternArch": {
67+
"icon1": {
68+
"x": 20,
69+
"y": 50,
70+
"service": "apigw",
71+
"label": "API Gateway REST API"
72+
},
73+
"icon2": {
74+
"x": 50,
75+
"y": 50,
76+
"service": "lambda",
77+
"label": "AWS Lambda"
78+
},
79+
"icon3": {
80+
"x": 80,
81+
"y": 50,
82+
"service": "bedrock",
83+
"label": "Amazon Bedrock"
84+
},
85+
"line1": {
86+
"from": "icon1",
87+
"to": "icon2"
88+
},
89+
"line2": {
90+
"from": "icon2",
91+
"to": "icon3"
92+
}
93+
}
94+
}

0 commit comments

Comments
 (0)