spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

How can I specify AWS profile from the configuration file? Bedrock client

Open artemptushkin opened this issue 1 year ago • 1 comments
trafficstars

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?

artemptushkin avatar Jul 23 '24 14:07 artemptushkin