awsSet Up Stakpak with Amazon Bedrock

Use Amazon Bedrock as your LLM provider for Stakpak

Prerequisites

  1. AWS Account with Amazon Bedrock access enabled in your target region.

  2. AWS Credentials Configured locally via ~/.aws/credentials or ~/.aws/config (SSO, IAM user, or instance profile)

  3. Amazon Bedrock Model Access: You must request model accessarrow-up-right in the AWS Console for the models you want to use (e.g., Anthropic Claude)

Step 1: Install Stakpak

curl -sSL https://stakpak.dev/install.sh | sh

Full installation guide: Install Stakpak


Step 2: Configure AWS Credentials

Stakpak's Bedrock provider uses your local AWS credentials. Make sure one of these is set up:

And you need to have these Required IAM Permissions

If you already use aws configure or AWS SSO, you likely have profiles in ~/.aws/config:

Log in to refresh your session:

IAM User Access Keys

Environment Variables

Required IAM Permissions

Your IAM identity needs the following permissions for Bedrock:

circle-info

Tip: For tighter security, scope the Resource to the specific model(s) you'll use, e.g.: arn:aws:bedrock:us-east-1::foundation-model/anthropic.claude-sonnet-4-20250514-v1:0


Step 3: Enable Model Access in AWS Console

Before Stakpak can call any model, you must request access in the Bedrock console:

  1. Navigate to Model access in the left sidebar

  2. Click Manage model access

  3. Select the models you want (e.g., Anthropic -> Claude 4 Sonnet)

  4. Submit the request (most models are approved instantly)


Step 4: Authenticate Stakpak with Bedrock

triangle-exclamation

References

Last updated