> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Course Introduction

> Hands-on course introducing Amazon Bedrock, covering foundation models, access methods, prompt engineering, integrations with AWS, security, RAG, agents, observability, and practical labs.

Generative AI is reshaping how modern applications are built—enabling intelligent, scalable, and highly personalized experiences. Amazon Bedrock is a fully managed AWS service that exposes high-quality foundation models through a simple API, making it easier for developers and organizations to integrate generative AI into production systems.

Welcome to the Introduction to Amazon Bedrock course. I'm Alistair, your instructor. In this lesson we'll cover the essentials of Bedrock: what it is, how it fits into the generative AI landscape, how to access it, and how to use it safely and effectively in real-world systems.

<Callout icon="lightbulb" color="#1CB2FE">
  This course assumes basic familiarity with AWS concepts (IAM, S3, Lambda, VPCs). If you are new to AWS, refer to the [AWS Documentation](https://aws.amazon.com/documentation/) before proceeding.
</Callout>

## What you'll learn

This course provides a hands-on, practical introduction to Amazon Bedrock and related generative AI topics:

* Core Bedrock concepts and architecture
* How to access Bedrock via Console, AWS CLI, and SDKs (for example, the AWS SDK for Python: [boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html))
* Prompt engineering and model behavior control
* Common task patterns: summarization, Q\&A, sentiment, and code generation
* Integration patterns with AWS services for event-driven systems
* Security and governance best practices (IAM, KMS)
* Observability, performance, and cost optimization
* Retrieval-augmented generation (RAG) and Bedrock Knowledge Bases
* Agent-based workflows and how they compare to Model Context Protocol patterns
* Hands-on labs and a guided marketing-email example to reinforce learning

Below is the course curriculum overview slide from the lesson:

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/aws-bedrock-curriculum-kodekloud-speaker.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=a6378d3c659e123e10de81ec06ccfaa5" alt="A split-screen slide: the left side lists an &#x22;AWS Bedrock Curriculum&#x22; with bullet points, and the right side shows a bearded man speaking while wearing a KodeKloud t-shirt." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/aws-bedrock-curriculum-kodekloud-speaker.jpg" />
</Frame>

## Accessing Amazon Bedrock

You can interact with Bedrock in multiple ways:

* Console: Quick exploration, model selection, and basic testing.
* AWS CLI / API: Scripting, automation, and integration with CI/CD.
* SDKs: Programmatic access from applications—commonly using `boto3` for Python.

Here’s a simple diagram showing a typical REST inference workflow (HTTP request → server processing → JSON response):

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/rest-inference-workflow-http-json-diagram.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=01ae63c40c16a3fa87793a8c6d2078e7" alt="A presentation slide titled &#x22;Workflow: REST Inference Example&#x22; showing a three-step diagram: Send HTTP request → Server processes request → Return JSON response. Icons illustrate each step and a small presenter thumbnail appears in the lower-right." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/rest-inference-workflow-http-json-diagram.jpg" />
</Frame>

## Prompt engineering and model interactions

We’ll cover how foundation models interpret instruction-style prompts, how to structure inputs, and techniques to steer generation (temperature, max tokens, system vs. user prompts, few-shot examples). You’ll learn practical prompt patterns and fail-safes to improve reliability.

Common task types covered:

* Summarization
* Question answering
* Sentiment analysis
* Code generation and transformation

## Integrations and event-driven patterns

Integration with other AWS services is a key focus: designing event-driven pipelines that respond to new data and scale with demand. The course demonstrates connecting Bedrock with Amazon S3, AWS Lambda, API Gateway, and Amazon Lex, enabling both backend pipelines and conversational experiences.

The next slide shows a sample event-driven pipeline where new S3 objects trigger Bedrock processing:

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/results-aws-s3-bedrock-video-workflow.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=8e22668edb739dc6d33e66dfae50dccd" alt="A presentation slide titled &#x22;Results&#x22; showing an event-driven AWS workflow where new files uploaded to Amazon S3 trigger processing by Bedrock. A small circular video thumbnail of a person appears in the lower-right corner." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/results-aws-s3-bedrock-video-workflow.jpg" />
</Frame>

Common integrations at a glance:

| AWS Service | Typical role with Bedrock | Example use case |
| - | - | - |
| Amazon S3 | Storage and event source | Trigger inference on uploaded documents |
| AWS Lambda | Lightweight processing & orchestration | Pre/post processing, calling Bedrock Runtime |
| Amazon API Gateway | Public APIs for inference | Expose model endpoints to web or mobile apps |
| Amazon Lex | Conversational UI | Forward user intents to Bedrock for complex responses |

A typical conversational architecture (Lex → Lambda → Bedrock → Lex) is illustrated below:

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/aws-bedrock-chatbot-workflow-lex-lambda.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=8170fe52153952a45677f6e16af3d369" alt="A presentation slide titled &#x22;Workflow: Who Does What?&#x22; that diagrams an AWS Bedrock chatbot workflow from User through Amazon Lex, Amazon Lambda, Amazon Bedrock and back, with icons and brief labels. A small circular webcam view of a presenter appears in the bottom-right." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/aws-bedrock-chatbot-workflow-lex-lambda.jpg" />
</Frame>

## Security, governance, and best practices

Security is essential when building generative AI systems. You will learn:

* Fine-grained access control with IAM (least privilege for Bedrock actions)
* Encrypting model inputs/outputs and artifacts with AWS KMS
* Governance and model usage monitoring
* Responsible AI considerations and content filtering patterns

<Callout icon="warning" color="#FF6B6B">
  Carefully design IAM policies and KMS usage. Grant only the required Bedrock actions and limit resource ARNs to avoid unintentionally exposing model invocation or knowledge-base access.
</Callout>

Example IAM policy for Bedrock usage (showing model invocation and RAG retrieval permissions):

```json theme={null}
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowModelUsage",
      "Effect": "Allow",
      "Action": [
        "bedrock:InvokeModel"
      ],
      "Resource": [
        "arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-3-sonnet"
      ]
    },
    {
      "Sid": "AllowKnowledgeBaseRAG",
      "Effect": "Allow",
      "Action": [
        "bedrock:RetrieveAndGenerate"
      ],
      "Resource": [
        "arn:aws:bedrock:us-east-1:123456789012:knowledge-base/kb-abc123"
      ]
    }
  ]
}
```

## Deployment patterns, observability, and cost optimization

We explore options for running Bedrock-driven workloads inside private VPCs, adding CloudWatch metrics/logs for observability, and techniques to analyze performance and reduce inference cost (batching, caching, appropriate model selection, autoscaling).

## Agent-based workflows and RAG

The course explains Bedrock Agents—how they orchestrate actions and connect to APIs—and compares agent-based solutions to Model Context Protocol approaches and RAG patterns using Bedrock Knowledge Bases.

Here’s a screenshot showing the Agent builder and action group configuration in the Bedrock interface:

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/4OlDw81IoiRnJTCQ/images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/aws-bedrock-workflow-agent-builder-avatar.jpg?fit=max&auto=format&n=4OlDw81IoiRnJTCQ&q=85&s=05b791cbd5fe479eb09f9d338d29d55f" alt="A screenshot of an AWS Bedrock interface titled &#x22;Workflow: You vs Bedrock Handles,&#x22; showing Agent builder and action group configuration panels. A small circular photo of a smiling man is overlaid in the bottom-right corner." width="1920" height="1080" data-path="images/Introduction-to-Amazon-Bedrock/Introduction-to-Gen-AI-and-LLMs/Course-Introduction/aws-bedrock-workflow-agent-builder-avatar.jpg" />
</Frame>

## Hands-on labs and sample code

This course includes guided labs and real-world demos. Below is a short setup snippet that demonstrates initializing a Bedrock runtime client with `boto3` and preparing a simple prompt. This is a setup example—actual inference calls will follow the Bedrock runtime API you use.

```python theme={null}
import boto3

client = boto3.client("bedrock-runtime", region_name="us-east-1")

model_id = "us.meta.llama3-1-8b-instruct-v1:0"

prompt = """
Instruction:
You are an AWS instructor.

Input:
Explain Amazon VPC by:
"""
```

In later modules you'll use the appropriate runtime invocation to send this prompt to your chosen foundation model and handle model outputs.

## Course format and community

* Lectures with visual diagrams and demos
* Guided labs and exercise projects (example: a marketing email generation app combining front-end and Bedrock-backed APIs)
* Community support through discussion channels where you can ask questions and share solutions

By course end you will be able to design, build, secure, monitor, and optimize generative AI applications on Amazon Bedrock.

## Links and references

* [Amazon Bedrock](https://aws.amazon.com/bedrock/)
* [boto3 — AWS SDK for Python](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html)
* [AWS Documentation](https://aws.amazon.com/documentation/)

If you're ready, let's begin your journey into generative AI.

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/introduction-to-amazon-bedrock/module/21e251db-dd75-4627-9910-aa15938adb6b/lesson/0fbefb42-3970-4e6e-8076-c8737152a8da" />
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.