Skip to content

Bedrock: Cross Region Inference capability  #31570

@medha-hegde

Description

@medha-hegde

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:
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-lambdaRelated to AWS Lambdaeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions