Skip to content

Commit 1d1b80b

Browse files
authored
Create apigw-bedrock-nova-canvas.json
1 parent 3ff1bdc commit 1d1b80b

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"title": "Serverless Text-to-Image Generation with Amazon Bedrock Nova Canvas",
3+
"description": "Serverless text-to-image generation using API Gateway, Lambda and Bedrock's Nova Canvas model for submitting prompts and S3 storage for images.",
4+
"language": "Python",
5+
"level": "200",
6+
"framework": "Terraform",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"The solution works by receiving a text prompt to an API Gateway endpoint, which triggers a Lambda function containing the request. The Lambda function then formats this prompt and makes a call to Amazon Bedrock's Nova Canvas model to generate an image based on the text description and the generated image is saved to the S3 bucket."
11+
]
12+
},
13+
"gitHub": {
14+
"template": {
15+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-bedrock-nova-canvas",
16+
"templateURL": "serverless-patterns/apigw-bedrock-nova-canvas",
17+
"projectFolder": "apigw-bedrock-nova-canvas",
18+
"templateFile": "main.tf"
19+
}
20+
},
21+
"resources": {
22+
"bullets": [
23+
{
24+
"text": "Amazon Nova Canvas",
25+
"link": "https://docs.aws.amazon.com/ai/responsible-ai/nova-canvas/overview.html"
26+
},
27+
{
28+
"text": "Invoke Amazon Nova Canvas on Amazon Bedrock to generate an image",
29+
"link": "https://docs.aws.amazon.com/bedrock/latest/userguide/bedrock-runtime_example_bedrock-runtime_InvokeModel_AmazonNovaImageGeneration_section.html"
30+
}
31+
]
32+
},
33+
"deploy": {
34+
"text": ["terraform init", "terraform apply"]
35+
},
36+
"testing": {
37+
"text": ["See the GitHub repo for detailed testing instructions."]
38+
},
39+
"cleanup": {
40+
"text": ["terraform destroy", "terraform show"]
41+
},
42+
"authors": [
43+
{
44+
"name": "Archana V",
45+
"image": "https://media.licdn.com/dms/image/v2/D5603AQGhkVtEhllFEw/profile-displayphoto-shrink_400_400/B56ZZH3LL6H0Ag-/0/1744962369913?e=1750291200&v=beta&t=R0hX6jzWC03OyoWKvYJ0jDDTuPocobPSy0lAJY-3XfA",
46+
"bio": "Solutions Architect at AWS",
47+
"linkedin": "archana-venkat-9b80b7184"
48+
}
49+
],
50+
"patternArch": {
51+
"icon1": {
52+
"x": 20,
53+
"y": 60,
54+
"service": "apigw",
55+
"label": "API Gateway REST API"
56+
},
57+
"icon2": {
58+
"x": 50,
59+
"y": 60,
60+
"service": "lambda",
61+
"label": "AWS Lambda"
62+
},
63+
"icon3": {
64+
"x": 80,
65+
"y": 20,
66+
"service": "bedrock",
67+
"label": "Amazon Bedrock"
68+
},
69+
"icon4": {
70+
"x": 80,
71+
"y": 60,
72+
"service": "s3",
73+
"label": "Amazon S3"
74+
},
75+
"line1": {
76+
"from": "icon1",
77+
"to": "icon2",
78+
"label": ""
79+
},
80+
"line2": {
81+
"from": "icon2",
82+
"to": "icon3",
83+
"label": ""
84+
},
85+
"line3": {
86+
"from": "icon2",
87+
"to": "icon4",
88+
"label": ""
89+
}
90+
}
91+
}

0 commit comments

Comments
 (0)