[Parameter Store] Strip leading dot from imported parameters #923
Labels
component: parameter-store
Parameter Store integration related issue
type: documentation
Documentation or Samples related issue
Milestone
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.The text was updated successfully, but these errors were encountered: