spring-cloud-aws
spring-cloud-aws copied to clipboard
[Parameter Store] Strip leading dot from imported parameters
Type: Bug
Component: Parameter Store
Describe the bug
The library adds a leading dot (.
) to imported variables, when using the setup as suggested in the readme (spring.config.import=aws-parameterstore:/config/spring
)
This leads to problems when importing variables stored in a nested hierarchy. For example, if a variable stored at /config/spring/my/message
, it is imported as .my.message
, and cannot be accessed via @Value("${my.message}")
.
Changing the config to spring.config.import=aws-parameterstore:/config/spring/
resolves this problem, but it would be a nice feature to strip the leading dot in the library.
Hey @matthias-seibert-tng , since we are loading by path it is important to end with the /
.
It only makes sense since you want all on the path.
I can understand that, but then it would be great if you could update the docs, because in the examples there, there is no slash at the end. See this screenshot:
Closed in #1086