How to properly set up parameter-store-config? #261
-
In general, I have never been able to make it work. Not even pass the initial run. I always got his error:
Specification:Spring Boot: 2.6.4 Dependency:dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-validation")
developmentOnly("org.springframework.boot:spring-boot-devtools")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
implementation("org.springframework.cloud:spring-cloud-starter-sleuth")
implementation("io.awspring.cloud:spring-cloud-aws-parameter-store-config:2.4.0")
} NOTE: It is just some of them. Can add more if needed. application.ymlspring:
application:
name: app-name
config:
import:
- "optional:aws-parameterstore:"
sleuth:
enabled: true
cloud:
aws:
region:
static: ap-southeast-1
stack:
auto: false
aws:
paramstore:
name: appname
prefix: /secret/team/domain
region: ap-southeast-1
enabled: true Additional Questions:
spring:
config:
import:
- "aws-parameterstore:/secret/team/domain/appname/secret.name;/secret/team/domain/appname/secret.value" NOTE: I have read the documentation here. But it is still not clear. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Anyways, should I put Edit: I have done it. I even added bootstrap dependency, but still not working. |
Beta Was this translation helpful? Give feedback.
-
Found the root cause. The dependency should have been |
Beta Was this translation helpful? Give feedback.
Found the root cause. The dependency should have been
io.awspring.cloud:spring-cloud-starter-aws-parameter-store-config
. My bad.