AWS Secrets Manager 后端
Spring Cloud Config Server 支持 AWS Secrets Manager 作为配置属性的后端。 您可以通过向 AWS Java SDK for Secrets Manager 添加依赖项来启用此功能。
pom.xml
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>secretsmanager</artifactId>
</dependency>以下配置使用 AWS Secrets Manager 客户端访问密钥。
spring:
  profiles:
  	active: awssecretsmanager
  cloud:
    config:
      server:
        aws-secretsmanager:
          region: us-east-1
          endpoint: https://us-east-1.console.aws.amazon.com/
          origin: aws:secrets:
          prefix: /secret/foo
          profileSeparator: _AWS Secrets Manager API 凭证是使用默认凭证提供程序链确定的。
| 
 |