Amazon Ergo playground
A static page streams answers from Amazon Ergo-1.0 on Amazon Bedrock and shows speed and cost for each request.
AWS Cloud
Region us-east-1
Region set by profile
Presenter
web browser
Amazon CloudFront
HTTPS endpoint
AWS WAF web ACL
Amazon S3
static page, private bucket
Amazon Cognito
Midway sign-in, issues token
Amazon API Gateway
REST API, Cognito authorizer
AWS WAF web ACL
AWS Lambda
Node.js, response streaming
Amazon CloudWatch Logs
API access and function logs
Amazon Bedrock
ConverseStream
global.amazon.ergo-1.0
Amazon Ergo-1.0
model inference
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
LINES
Request and streamed answer
Sign-in
Logs
FLOW
The presenter opens the playground through Amazon CloudFront, behind AWS WAF.
CloudFront serves the static page from a private Amazon S3 bucket.
The browser signs in through Amazon Cognito (Midway) and gets a token.
The browser sends the prompt and reasoning effort to API Gateway with the token.
API Gateway checks the token and invokes the Lambda function.
Lambda calls ConverseStream on the global inference profile and streams the answer back.
The profile routes the request to a Region it selects (cross-Region inference).
API Gateway and Lambda write logs to Amazon CloudWatch Logs.