spring-cloud-aws icon indicating copy to clipboard operation
spring-cloud-aws copied to clipboard

Enhance RegionProviderAutoConfiguration make profile configuration easier

Open maxjiang153 opened this issue 10 months ago • 0 comments

Type: Feature

Is your feature request related to a problem? Please describe. Currently when a project wants to use profile configuration with credentials and regions, we need to configure twice profile configuration. for example:

spring:
  cloud:
    aws:
      credentials:
        profile:
          name: example
      region:
        profile:
          name: example

Even if profile's credential region as same as region.

Describe the solution you'd like

If we can enhance RegionProviderAutoConfiguration load credential configuration when the region profile doesn't exist, it will be easier to use profile configuration.

example:

spring:
  cloud:
    aws:
      credentials:
        profile:
          name: example

Describe alternatives you've considered Because AWS credential profile already contains region configuration, it will be more clear and easier to use this configure method.

Additional context

maxjiang153 avatar Apr 02 '24 12:04 maxjiang153