Skip to content
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

1608 - added support of AWS Parameters Store #1618

Merged
merged 1 commit into from
Feb 16, 2024
Merged

1608 - added support of AWS Parameters Store #1618

merged 1 commit into from
Feb 16, 2024

Conversation

Vladysl
Copy link
Contributor

@Vladysl Vladysl commented Feb 13, 2024

By default, AWS Parameters Store is disabled.
In case, user want to enable it, need to specify:

  • AWS_PARAMSTORE_ENABLED=true (for default values)
  • AWS_SECRETSMANAGER_ENABLED=true (for Secured values)

Note : this naming is hardcoded
In case, you want to enable this on your local env, you should also specify:

  • AWS_ACCESS_KEY_ID
  • AWS_REGION
  • AWS_SECRET_KEY

(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

auth:
  type: DISABLED

1)In parameters store we have this : /odd/platform_config/auth.type=OAUTH2. Result: applciation.yml will be overridden and we will have OAUTH2
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
image
Their values in application

image

@Vladysl Vladysl requested review from a team as code owners February 13, 2024 15:25
Copy link

Test Results

  55 files    55 suites   2m 50s ⏱️
259 tests 259 ✔️ 0 💤 0
287 runs  287 ✔️ 0 💤 0

Results for commit 94aad10.

Copy link

Quality Gate Passed Quality Gate passed for 'odd-platform-api'

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@Vladysl Vladysl merged commit 0f42859 into main Feb 16, 2024
8 checks passed
@Vladysl Vladysl deleted the 1608 branch February 16, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants