Member-only story
Bedrock unveiled: A Quick Lambda example
One of the most awaited AWS releases of 2023 is finally Generally Available (GA): Amazon Bedrock, a fully managed service to build generative AI applications with foundation models (FMs).
This article shows how to enable Bedrock FMs and utilize them, for example, in Lambda functions. The use case is part of an AI assistant I created in a previous article.
The main difference with previous app is in the usage of the AI21Labs Jurassic model (via Bedrock) over the plain OpenAI model, and the resulting architecture will look like this:

In future articles, I will show how to index your own documents
and apply Retrieval Augmented Technique, make sure you check them out!
Setup Bedrock
Bedrock provides a set of pre-defined FMs, which you can use to query against:
To use such FMs in Bedrock, you first must enable them:
- Go to https://us-east-1.console.aws.amazon.com/bedrock/home?region=us-east-1 (As Bedrock only GA in 3 regions for now)
- The below screen appears, only admins can manage model access.