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

(R) Add bedrock profile autoconfiguration support and replace deprecated

Open jiangbaojun opened this issue 3 weeks ago • 1 comments
trafficstars

@tzolov Update autoconfiguration, meets the requirements of three connection methods: security key, profile, and IAM Role DefaultCredentialsProvider.create() was deprecated, replace with DefaultCredentialsProvider.builder().build()

example configuration

spring:
  ai:
    bedrock:
      aws:
        profile:
          # (require) profile name
          name: my-profile-name
          # (optional) if not declared, use ~/.aws/credentials
          credentials-path: /develop/data/aws/credentials
          # (optional) if not declared, use ~/.aws/config
          configuration-path: /develop/data/aws/config

jiangbaojun avatar Oct 28 '25 03:10 jiangbaojun

@ericbottard I've finished updating. Could you review it at your convenience?

jiangbaojun avatar Nov 06 '25 01:11 jiangbaojun