Requirements:
Login access to an AWS account with sufficient permissions to create and use resources
Login access to a Verodat account
Why set up Bedrock?
Amazon Bedrock provides easy access to various foundational LLM models from different AI providers, including Amazon and Anthropic.
Bedrock's unified interface that makes it easy to access multiple LLM models from within Verodat, so you can quickly and easily change your prompt and the model you'd like to send it to from within the Verodat interface.
By using Bedrock, you can choose the best model suited to your needs without worrying about infrastructure management, allowing seamless scaling, model updates, and cost optimisation.
Step 1: Enable Bedrock within AWS
Steps to follow:
In the services searchbar, search for and select ‘Bedrock’.
Click the button that says ‘Get Started’
At the sidebar on the left scroll down to ‘Bedrock Configurations’ and then select ‘Model Access’
This should only take a few mins, wait and then refresh the page to confirm that you have been granted access to the models.
Step 2: Create a lambda (serverless function)
Why is this needed?
AWS Lambda provides a serverless environment to handle requests dynamically without managing server infrastructure. Lambda allows the code to scale automatically in response to incoming events, making it ideal for processing prompt-based AI model invocations from Bedrock.
By deploying the lambda_handler, the solution can trigger different model generation functions based on the incoming request, dynamically routing the event to the appropriate model (Amazon, Anthropic, or Cohere) based on the provided model ID. Lambda also facilitates the integration of Boto3 for invoking Bedrock models.
Steps to follow:
In the AWS console search bar you should now search for and select ‘Lambda’
Select ‘Create function’
Select ‘Author from scratch’
In Basic Information, add the following details:
In Advance Settings:
Leave everything else as default
Select ‘Create Function’
Scroll down to ‘Code’ select ‘Upload from’ and then ‘.zip file’
Upload this .zip file: verodat-f5433602-8dfd-4254-951d-95c7ef33f19b.zip
Step 3: Set up the API Gateway
Why is this needed?
By setting up API Gateway, you create a secure, scalable entry point for HTTP requests that trigger the Lambda function handling Bedrock model requests. It enables external applications like Verodat to send prompts and model IDs in a standardised way, while API Gateway manages the request routing, authorisation, and scaling.
Steps to follow:
In the AWS console search bar you should now search for and select ‘API Gateway’
Under REST API select ‘Build’
Name the API, everything else can stay as default
Select ‘Create API’
Select ‘Create Resource’
Name the resource ‘Bedrock’
Under the resource create a ‘Method’
Create the below settings in the next screen. The Lambda function should be the one that you created earlier:
Integration type: Lambda
Lambda proxy integration: False
Region: eu-central-1
Lambda function: verodat
Timeout: default
9. Still within the API Gateway, navigate to Integration Request settings as shown in the following screenshot:
and then enter the following details:



