RAG chat assistant on Amazon Bedrock

RAG chat assistant on Amazon Bedrock RAG chat assistant on Amazon Bedrock Authenticated API → orchestrator → guarded model call grounded by a vector store, with invocation logging AWS Cloud Region Generative AI Data and operations HTTPS + JWT 1. Users → Amazon API Gateway (HTTPS + JWT)1 2. Amazon API Gateway → AWS Lambda2 invoke 5. AWS Lambda → Amazon Bedrock (invoke)5 authorizer protects ingest retrieve 3. AWS Lambda → Amazon OpenSearch Service (retrieve)3 check prompt 4. AWS Lambda → Bedrock Guardrails (check prompt)4 logs Users (Users) Users Amazon Cognito (Amazon Cognito) Amazon Cognito Amazon API Gateway (Amazon API Gateway) Amazon API Gateway AWS WAF (AWS WAF) AWS WAF AWS Lambda (AWS Lambda) AWS Lambda orchestrator Bedrock Guardrails (Amazon Bedrock) Bedrock Guardrails Amazon Bedrock (Amazon Bedrock) Amazon Bedrock foundation model Amazon OpenSearch Service (Amazon OpenSearch Service) Amazon OpenSearch Service vector store Amazon CloudWatch (Amazon CloudWatch) Amazon CloudWatch invocation logs AWS KMS (AWS Key Management Service) AWS KMS encryption keys Amazon S3 (Amazon Simple Storage Service) Amazon S3 source documents

Flow

  1. 1Users → Amazon API Gateway (HTTPS + JWT)
  2. 2Amazon API Gateway → AWS Lambda
  3. 3AWS Lambda → Amazon OpenSearch Service (retrieve)
  4. 4AWS Lambda → Bedrock Guardrails (check prompt)
  5. 5AWS Lambda → Amazon Bedrock (invoke)

Cost estimate us-east-1 · price list as of 2026-10-02 · indicative — some usage is assumed

$943per month
$11,318per year
10/11components priced
0not priced (see below)

Public on-demand AWS list prices from the AWS Price List. Excludes free tier, taxes, support plans, Savings Plans/Reserved Instances/Spot and enterprise discounts, and data transfer unless a node sets egressGbPerMonth. Monthly = 730 hours. Not a quote: confirm with the AWS Pricing Calculator.

Usage basis. Illustrative: 200,000 questions/month, about 750 input and 75 output tokens each after retrieval.

By category

AI and agents$570 · 60%
Data and storage$271 · 29%
Security and operations$99.20 · 11%
Compute$1.87 · 0%
Integration$0.70 · 0%

By component click a row to highlight it on the diagram

ComponentServiceStatus$ / monthLine items
Amazon BedrockAmazon Bedrockestimated$495
2 lines
  • Claude Sonnet 5.5 (Amazon Bedrock Edition): input tokens (standard): 150 1M tokens × $2.20 = $330.00
  • Claude Sonnet 5.5 (Amazon Bedrock Edition): output tokens (standard): 15 1M tokens × $11.00 = $165.00

Model matched in the Price List: Claude Sonnet 5.5 (Amazon Bedrock Edition). Rates are on-demand standard inference in this region.

Amazon OpenSearch ServiceAmazon OpenSearch Serviceestimated$268
2 lines
  • 2 × r6g.large.search (hours): 1,460 Hrs × $0.167 = $243.82
  • EBS gp3 storage (2 × 100 GB-month): 200 GB-Mo × $0.122 = $24.40
Amazon CognitoAmazon Cognitoestimated$75.00
1 line
  • Monthly active users (essentials): 5,000 CognitoUserPoolsMAU × $0.015 = $75.00

Excludes the free tier.

Bedrock GuardrailsAmazon Bedrockestimated$75.00
2 lines
  • content policy (1 text unit ≈ 1,000 characters): 300,000 TextUnit × $0.0002 = $45.00
  • pii policy (1 text unit ≈ 1,000 characters): 300,000 TextUnit × $0.0001 = $30.00
Amazon CloudWatchAmazon CloudWatchestimated$12.30
4 lines
  • Log ingestion (GB): 10 GB × $0.50 = $5.00
  • Log storage (GB-month): 10 GB-Mo × $0.03 = $0.30
  • Custom metrics: 20 Metrics × $0.00 = $6.00
  • Standard-resolution alarms: 10 Alarms × $0.10 = $1.00
AWS WAFAWS WAFestimated$10.60
3 lines
  • Web ACLs: 1 Month × $5.00 = $5.00
  • Rules: 5 Month × $1.00 = $5.00
  • Requests inspected: 1,000,000 Request × $0.00 = $0.60

Managed rule groups with their own fees (e.g. Bot Control) are not included.

Amazon S3Amazon Simple Storage Serviceestimated$3.20
3 lines
  • Storage, standard (GB-month): 100 GB-Mo × $0.00 = $2.30
  • PUT/COPY/POST/LIST requests: 100,000 Requests × $0.00 = $0.50
  • GET and other requests: 1,000,000 Requests × $0.00 = $0.40
AWS LambdaAWS Lambdaestimated$1.87
2 lines
  • Requests (x86): 1,000,000 Requests × $0.00 = $0.20
  • Compute duration (GB-seconds): 100,000 Lambda-GB-Second × $0.00 = $1.6667
AWS KMSAWS Key Management Serviceestimated$1.30
2 lines
  • Customer managed keys: 1 Keys × $1.00 = $1.00
  • API requests: 100,000 Requests × $0.00 = $0.30
Amazon API GatewayAmazon API Gatewayestimated$0.70
1 line
  • REST API requests: 200,000 Requests × $0.00 = $0.70

Assumptions 25 defaulted — replace them with your own numbers in each node's usage

ComponentAssumptionValueSource
Amazon Cognitotieressentialsassumed
Amazon Cognitomau5000from spec
Amazon API Gatewaytyperestassumed
Amazon API GatewayrequestsPerMonth200000from spec
AWS WAFwebAcls1assumed
AWS WAFrules5assumed
AWS WAFrequestsPerMonth1000000assumed
AWS LambdarequestsPerMonth1000000assumed
AWS LambdaavgDurationMs200assumed
AWS LambdamemoryMb512assumed
AWS Lambdaarchx86assumed
Bedrock GuardrailstextUnitsPerMonth300000from spec
Bedrock Guardrailspolicies["content","pii"]from spec
Amazon BedrockmodelClaude Sonnet 5.5from spec
Amazon Bedrockmodestandardassumed
Amazon BedrockinputTokensPerMonth150000000from spec
Amazon BedrockoutputTokensPerMonth15000000from spec
Amazon BedrockcacheReadTokensPerMonth0assumed
Amazon OpenSearch Servicemodeprovisionedassumed
Amazon OpenSearch ServiceinstanceTyper6g.large.searchassumed
Amazon OpenSearch ServiceinstanceCount2assumed
Amazon OpenSearch ServicestorageGbPerNode100assumed
Amazon CloudWatchlogIngestGbPerMonth10assumed
Amazon CloudWatchlogStorageGb10assumed
Amazon CloudWatchcustomMetrics20assumed
Amazon CloudWatchalarms10assumed
AWS KMSkeys1assumed
AWS KMSrequestsPerMonth100000assumed
Amazon S3storageClassstandardassumed
Amazon S3storageGb100assumed
Amazon S3putRequestsPerMonth100000assumed
Amazon S3getRequestsPerMonth1000000assumed

Sensitivity & what-if

$943at 1× traffic
$2,257at 3× traffic
$6,856at 10× traffic
  • Run AWS Lambda on arm64 (Graviton) — saves $0.33/month. Same usage re-priced with arm64 request and duration rates; assumes the code runs unchanged on arm64.

Price list provenance

Retrieved 2026-10-01T18:40:39.861Z from the public AWS Price List bulk API. Per-service publication dates:

AmazonCognito 2026-09-25 · AmazonApiGateway 2026-09-21 · awswaf 2026-09-14 · AWSLambda 2026-09-19 · AmazonBedrock 2026-09-30 · AmazonBedrockFoundationModels 2026-09-30 · AmazonES 2026-09-27 · AmazonCloudWatch 2026-09-22 · awskms 2026-09-11 · AmazonS3 2026-09-28

Only public on-demand rates are used. This is not a quote — confirm in the AWS Pricing Calculator.