AWS Bedrock with Profile Authentication
Learn how to configure AWS Bedrock to use AWS Profiles for authentication with Bwat, focusing on secure SSO/Federated role access.
Overview
Bwat supports AWS credential authentication through both direct IAM keys and AWS profiles. This guide focuses on the recommended approach using SSO/Federated roles for enhanced security when accessing AWS Bedrock services.
Setup Instructions
Install AWS CLI
Download and install the latest AWS CLI version for your operating system.
Configure IAM Authentication
Follow AWS's SSO configuration guide:
- New users: Set up IAM through the Identity Center guide (opens in a new tab) with PowerUserAccess role
- Enterprise users: Access your AWS portal and verify PowerUserAccess permissions
- Note your SSO start URL and SSO region from the Access keys section
Complete Profile Setup
Using the AWS CLI wizard:
- Authenticate with:
aws sso login --profile <your-profile-name>
- Remember your profile name for Bwat configuration
Install Prerequisites
- Install VS Code if not already present
- Add the Bwat extension (see Getting Started guide)
Configure Bwat Integration
In the Bwat extension:
- Open settings (⚙️ icon)
- Select "AWS Bedrock" as API Provider
- Choose "AWS Profile" authentication
- Enter your profile name from step 3
- Select AWS region
- Enable cross-region inference if required for your models
Key Benefits
- Enhanced Security: Uses temporary SSO credentials instead of permanent IAM keys
- Enterprise Ready: Supports federated access common in organizational environments
- Simplified Management: Profile-based authentication reduces credential handling
For troubleshooting, verify your AWS profile is active using aws sts get-caller-identity --profile <your-profile-name>
before configuring Bwat.