-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How to represent array properties in parameter store? #245
Comments
Hi again, We fixed this in our project by representing array indexes with
Not sure that would work as a general solution without breaking existing applications. If someone else needs this now, in our project we've created a property source that just gets the parameters resolved by AwsParamStorePropertySource (they'll have the underscore array index notation) and transform them into the system properties array notation (with brackets):
|
Thanks @rmpestano! @MatejNedic is looking how to tackle this issue on the Spring Cloud AWS side. Perhaps we can come up together with a PR? |
Hey @maciejwalkowiak, I've just opened a draft PR (#248), maybe we can use it as a starting point. Cheers! |
Type: Bug
Component:
"Parameter Store"
Describe the bug
I need to represent list properties in parameter store, is it possible?
The main issue is that list indexes are represented by square brackets in Spring which are not supported as parameter names in ssm API, here's the pattern:
a-zA-Z0-9_.-
Sample
Here's a sample spring config I want to represent on ssm:
in parameter store I'd need the following parameters:
/config/app/config.users[0].name
/config/app/config.users[0].password
/config/app/config.users[1].name
/config/app/config.users[1].password
But I cannot create them because of the brackets.
Note that the env var representation would work as it uses
_
for the array index.The text was updated successfully, but these errors were encountered: