Learn/AI
AI · 14 min read · August 2026
Amazon Bedrock Foundations: Models, IAM, and Responsible Use
What Bedrock is in official AWS terms — model access, InvokeModel, IAM, and why a student chapter treats prompts and data as production secrets.
Source. Amazon Bedrock User Guide · Model access · IAM for Bedrock · AWS Responsible AI
Abstract & theoretical context
Amazon Bedrock is a fully managed API to foundation models (Amazon and third-party) without you running GPUs. You enable model access per account/Region, then call InvokeModel or Converse with IAM. The model is not ‘ChatGPT in AWS’; providers, context windows, and pricing differ. Data you send can be sensitive (student PII, unpublished lab keys). This chapter note stays on the documented path: enable a model in ap-south-1 if available, least-privilege bedrock:InvokeModel, never embed keys in a frontend, and log that this is a lab.
Models, formulas & variables
1. Call path
Client → IAM SigV4 → Bedrock Runtime (Region) → foundation model → tokens out
- — Model IDs are Region-specific. Copy from the console, do not invent them.
- — On-demand vs provisioned throughput is a cost fork. Students stay on-demand.
2. Trust
R_customer includes prompts, retrieved documents, and output handling
- — Do not paste AWS credentials into a prompt to ‘debug IAM’.
- — RAG is a later lab. Get InvokeModel working first.
Reference implementation
Copy into a sandbox account. Pin Region ap-south-1 unless the lab says otherwise.
bedrock-list.sh
AWS CLI · bash
aws bedrock list-foundation-models --region ap-south-1 \
--query "modelSummaries[].[modelId,providerName]" --output table
# After enabling a text model in the console:
# aws bedrock-runtime converse --model-id MODEL_ID --messages ...
# Prefer the console playground for the first 15 minutes, then CLI.Lab procedure
- 01Open Bedrock in ap-south-1 (or the Region your mentor names if a model is not listed).
- 02Request model access for one small text model only. Wait until status is Access granted.
- 03Use the playground with a non-sensitive prompt. Note input/output token counts.
- 04Create an IAM policy that allows bedrock:InvokeModel on that model ARN only.
- 05Close the tab. Do not build a public chatbot on chapter credentials.
Key insights
- If list-foundation-models is empty, you are in the wrong Region or access is off.
- Bedrock charges for tokens. Playground clicks are still billable after Free Tier nuance.
- Responsible AI is part of the lab, not a slide after the demo.
Account & lab requirements
Account with Bedrock enabled in a supported Region. Billing alerts from the Cost lab should already exist.