With aws.sdk.kotlin:bedrockruntime
I can setup the client like this:
val client = BedrockRuntimeClient {
region = "eu-central-1"
credentialsProvider = ProfileCredentialsProvider(profileName = "dev")
}
where profileName
delegates to one of the profiles in ~/.aws/config
, i.e. [profile dev]
It's it possible to do now with Spring AI? If not can we have the feature request?
Comment From: jogueber
According to this it is not specified in the bedrock properties.
An option would be to add the logic if there is a profile name to extend it.
Otherwise you could also just set the AWS_PROFILE
environment variable and it should pick it up.