You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add source region selection and standardize configuration display
This commit introduces several improvements to the Claude Code with Bedrock CLI:
## Model Configuration Enhancements
- Added source region selection during init for cross-region inference profiles
- Users can now select specific source regions within their chosen profile (US/Europe/APAC)
- Moved model configuration from top-level settings.json field to environment variables
- Set ANTHROPIC_MODEL and ANTHROPIC_SMALL_FAST_MODEL env vars based on selected model
- For Opus models, automatically configure Haiku as the small/fast model variant
## Configuration Display Improvements
- Created shared display utility for consistent configuration output
- Standardized output between status and package commands
- Added missing fields: Client ID, Analytics status, Source Region
- Clarified profile naming (Configuration Profile vs AWS Profile)
- Enhanced Identity Pool display to show both name and ID when available
## Code Quality and Modernization
- Updated type hints to use modern Python 3.9+ syntax (dict instead of Dict, list instead of List)
- Fixed linting issues across the codebase
- Removed redundant imports and organized import statements
- Applied consistent code formatting
## Documentation Updates
- Updated CLI_REFERENCE.md with model and source region selection details
- Enhanced DEPLOYMENT.md to describe the model selection process
- Updated README.md to explain cross-region inference configuration options
## Testing
- All 70 tests passing
- Removed redundant package display test
- Updated tests to check for environment variables instead of top-level model field
This update ensures users have better control over their Bedrock model configuration
while maintaining backward compatibility with existing deployments.
Copy file name to clipboardExpand all lines: README.md
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,14 @@ The guidance can be deployed in any AWS region that supports:
169
169
- Amazon Bedrock
170
170
- (Optional) Amazon ECS Fargate for monitoring
171
171
172
-
Users can access Bedrock in any region you configure during setup, regardless of where the authentication infrastructure is deployed.
172
+
### Cross-Region Inference
173
+
174
+
Claude Code uses Amazon Bedrock's cross-region inference for optimal performance and availability. During setup, you can:
175
+
- Select your preferred Claude model (Opus, Sonnet, Haiku)
176
+
- Choose a cross-region profile (US, Europe, APAC) for optimal regional routing
177
+
- Select a specific source region within your profile for model inference
178
+
179
+
This automatically routes requests across multiple AWS regions to ensure the best response times and highest availability. Modern Claude models (3.7+) require cross-region inference for access.
173
180
174
181
## Implementation
175
182
@@ -185,7 +192,7 @@ The wizard will guide you through:
Copy file name to clipboardExpand all lines: assets/docs/DEPLOYMENT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ poetry install
34
34
35
35
The `ccwb` (Claude Code with Bedrock) CLI tool guides you through deployment with an interactive wizard. Run `poetry run ccwb init` to begin. The wizard walks you through each configuration decision, starting with your OIDC provider details - enter the domain and Client ID you noted earlier.
36
36
37
-
Next, you'll choose AWS regions. Select where to deploy the authentication infrastructure (typically your primary AWS region) and which regions users should access Bedrock from. The wizard also offers optional monitoring setup, which provides usage analytics and cost tracking through OpenTelemetry.
37
+
Next, you'll select your Claude model and configure regional access. Choose from available Claude models (Opus, Sonnet, Haiku) and select a cross-region inference profile (US, Europe, or APAC) for optimal performance. The wizard will then prompt you to select a source region within your chosen profile for model inference. Finally, choose where to deploy the authentication infrastructure (typically your primary AWS region) and configure optional monitoring setup, which provides usage analytics and cost tracking through OpenTelemetry.
38
38
39
39
Once configuration is complete, deploy the infrastructure with:
0 commit comments