Preparation Steps

IAM Permissions

Required Permissions

  • AdministratorAccess
  • AmazonBedrockFullAccess
  • AWSCodeBuildAdminAccess
  • AWSCodeBuildDeveloperAccess
  • BedrockAgentCoreFullAccess

Create a User and Assign Permissions

  1. Go to IAMUsers → select Create user.
  2. Add the permissions listed above.
  3. Complete the user creation and save the Access Key if you need it for the SDK.

iam

Download AWS CLI

Download AWS CLI: AWS CLI Link

Then install it following the instructions.

CLI

UV Management Setup

1. Why use UV?

UV is fast, lightweight, and manages environments better than pip.

2. Install UV on Windows

Run:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Add UV to PATH:

$env:Path = "C:\Users\leamo\.local\bin;$env:Path"

uvpath

Restart your machine to apply the new PATH.

3. Initialize a UV Environment

Inside your project directory:

uv init

runuv

Then select the environment in VS Code.

Connect Your Machine to AWS CLI

Go back to IAM to create an Access Key.

Create Access Key and Configure AWS CLI

  1. In the user page: Security credentialsCreate access key
  2. Choose Command Line Interface (CLI)

Configure AWS CLI

Run:

aws configure

Fill in:

  • AWS Access Key ID
  • AWS Secret Access Key
  • Default region name (example: ap-southeast-1)
  • Default output format
json

conectCLI

Start AWS CLI AgentCore

Run:

uv run which agentcore

After running, it will download all necessary libraries for AWS AgentCore.

run agentcore

Create Groq API

Go to Groq and create an API key as shown. These external tools support RAG and are integrated through AWS AgentCore.

groqapi