1608 - added support of AWS Parameters Store #1618
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By default, AWS Parameters Store is disabled.
In case, user want to enable it, need to specify:
Note : this naming is hardcoded
In case, you want to enable this on your local env, you should also specify:
(How to setup this variables for local env)
By default,
aws.paramstore.prefix = /odd
aws.paramstore.name = platform_config
In result, platform will get variables which have naming like: /odd/platform_config/[variable.name]
IMPORTANT
As name separator for variable, you should use
'.'
, not'_'
.This rule only for variables naming. Name of profile can be separated by
'_'.
Example:
In applciation.yml we have following property
1)In parameters store we have this : /odd/platform_config/auth.type=OAUTH2. Result: applciation.yml will be overridden and we will have OAUTH2
![image](https://private-user-images.githubusercontent.com/45620393/304457949-584828e8-e80e-4878-994c-bb6dc98e37b2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NjMxMzIsIm5iZiI6MTczOTQ2MjgzMiwicGF0aCI6Ii80NTYyMDM5My8zMDQ0NTc5NDktNTg0ODI4ZTgtZTgwZS00ODc4LTk5NGMtYmI2ZGM5OGUzN2IyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE2MDcxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwOTZlMDA2MDI4NzcyZjMyNzY3MjBhYjM0NjVkMTQ1YzY0YTk0MjE4YmM5OGE5MThhYWFiMDYxY2VjYzY4OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SsSw8BGdP_cJAD8vK94ihYeZ99bGA4yQEtTY114IT7g)
2)In parameters store we have this : /odd/platform_config/auth_type=OAUTH2. Result: applciation.yml will NOT be overridden and we will have DISABLED
Screenshots:
variables in paramstore
Their values in application