【发布时间】:2020-07-02 23:34:16
【问题描述】:
到目前为止,我可以在本地系统中使用简单的用户名/密码从 gitlab 中提取 config-repo 文件,并且效果很好。现在我正在将东西转移到 AWS-ECS(Fargate)。
native 配置文件运行良好,但我想使用 git-uri,为此我必须提供连接凭据。
spring:
profiles: dev
cloud:
config:
server:
git:
uri: https://gitlab.com/<group>/<project>.git
clone-on-start: true
default-label: gitlabci-test
searchPaths: '{profile}'
username: ${gitlab-username}
password: ${gitlab-password}
如何配置 config-server 以从 AWS Parameter store 或 secret-manager 中提取凭证?任何帮助将不胜感激。
【问题讨论】:
标签: spring-cloud amazon-ecs aws-secrets-manager aws-parameter-store spring-cloud-config-server