Skip to content

sdk does not seem to be retrieving aws bedrock credentials correctly #268

@armando-swarm

Description

@armando-swarm
  1. the templates do not seem to provide aws_access_key aws_secret_key and aws_region being expected by the amazon_bedrock_request function in utils.py. if you look at the llm_kwargs field of a template you get
{
    "messages": [
      {
        "role": "user",
        "content": []
      }
    ],
    "system": [
      {
        "text": "Your prompt",
      }
    ],
    "modelId": "us.anthropic.claude-sonnet-4-20250514-v1:0",
    "inferenceConfig": {
      "topP": 1,
      "temperature": 0,
      "maxTokens": 1024
    }
  }
  1. the boto client inside utils.py cannot completely take the configuration from your aws credentials file because region always defaults to us-east-1. If you have your bedrock in another region the sdk will never work. this is caused by the following line which defaults to us-east-1 if region is not provided by the template
region_name=function_kwargs.pop("aws_region", "us-east-1"),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions