Build a Serverless Web Application using Generative AI
AWS experience |
Beginner |
Time to complete |
35 minutes |
Cost to complete |
Free tier |
Requires |
NoteAccounts created within the past 24 hours might not yet have access to the services required for this tutorial. |
Last updated |
July 19, 2024 |
Overview
In this tutorial, you will learn how to use AWS Amplify to build a
serverless web application powered by Generative AI using Amazon
Bedrock and the
Claude 3
Sonnet
What you will accomplish
In this tutorial, you will:
-
Configure AWS Amplify to host your frontend application with continuous deployment built in
-
Configure Amplify Auth and enable Amazon Bedrock foundation model Access
-
Build an app backend for handling requests for your web application
-
Use Amplify Data to call the serverless backend
-
Connect the app to the backend
Prerequisites
Before starting this tutorial, you will need:
-
An AWS account: if you don't already have one follow the Setup Your Environment tutorial.
-
Configure your AWS profile for local development
. -
Familiarity with git and a Github
account.
Application Architecture
The following diagram provides a visual representation of the services used in this tutorial and how they are connected. This application uses AWS Amplify, a GraphQL API built with AWS AppSync, AWS Lambda, and Amazon Bedrock.
As you go through the tutorial, you will learn about the services in detail and find resources that will help you get up to speed with them.

Tasks
This tutorial is divided into the following tasks. You must complete each task before moving to the next one.
-
Task 1: Host a Static Website (5 minutes): Configure AWS Amplify to host your frontend application with continuous deployment built in
-
Task 2: Manage Users (5 minutes): Configure Amplify Auth and enable Amazon Bedrock foundation model Access
-
Task 3: Build a Serverless Backend (10 minutes): Build an app backend for handling requests for your web application
-
Task 4: Deploy the Backend API (5 minutes): Use Amplify Data to call the serverless backend
-
Task 5: Build the Frontend (5 minutes): Connect the app to the backend
-
Task 6: Clean up Resources (2 minutes): Clean up the resources used in this tutorial