Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Bedrock.InferenceProfile resource and add example #1641

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

larhauga
Copy link

Description of your changes

This change implements the bedrock inference profile resource enabling the creation of application inference profiles.

Fixes #1589

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested with make run in eu-central-1 aws region.

For testing this resource you will need to enable the models in the AWS account in accordance with https://docs.aws.amazon.com/bedrock/latest/userguide/model-access-modify.html

aws bedrock list-inference-profiles --type-equals APPLICATION --region eu-central-1
{
    "inferenceProfileSummaries": [
        {
            "inferenceProfileName": "llama-test-profile",
            "description": "Profile with tag for cost allocation tracking",
            "createdAt": "2025-01-16T08:58:00.978628+00:00",
            "updatedAt": "2025-01-16T08:58:00.978628+00:00",
            "inferenceProfileArn": "arn:aws:bedrock:eu-central-1:redacted:application-inference-profile/redacted",
            "models": [
                {
                    "modelArn": "arn:aws:bedrock:eu-central-1::foundation-model/meta.llama3-2-1b-instruct-v1:0"
                },
                {
                    "modelArn": "arn:aws:bedrock:eu-west-1::foundation-model/meta.llama3-2-1b-instruct-v1:0"
                },
                {
                    "modelArn": "arn:aws:bedrock:eu-west-3::foundation-model/meta.llama3-2-1b-instruct-v1:0"
                }
            ],
            "inferenceProfileId": "redacted",
            "status": "ACTIVE",
            "type": "APPLICATION"
        }
    ]
}

@turkenf
Copy link
Collaborator

turkenf commented Jan 17, 2025

/test-examples="examples/bedrock/v1beta1/inferenceprofile.yaml"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request for aws_bedrock_inference_profile resource
2 participants