-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Bedrock: Cross Region Inference capability #31570
Copy link
Copy link
Open
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS Lambdaeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2
Description
Describe the feature
The new cross-region inference profiles allow us to use the same Bedrock model in other regions by switching out the foundation model ARN with this inference profile ARN:

However, in the Amazon Bedrock Construct Library only allows for Foundation Models or Provisioned Models.
Can we incorprate this new cross-region inference profiles feature ASAP?
Use Case
I am invoking the Bedrock API via Step Functions tasks with this code currently:
claude_model_id = bedrock.FoundationModelIdentifier.ANTHROPIC_CLAUDE_V2_1
invoke_model = tasks.BedrockInvokeModel(
scope,
id + " (Invoke Model)",
model=bedrock.FoundationModel.from_foundation_model_id(
scope,
"Model",
claude_model_id,
),...
ideally I'd like to simply switch out the claude_model_id for the inference profile ARN.
Proposed Solution
Allow for custom ARNs instead of enforcing the bedrock.FoundationModelIdentifier class for the model IDs.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.155.0
Environment details (OS name and version, etc.)
MacOS Ventura, M2 Chip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-lambdaRelated to AWS LambdaRelated to AWS Lambdaeffort/mediumMedium work item – several days of effortMedium work item – several days of effortfeature-requestA feature should be added or improved.A feature should be added or improved.p2