Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Add aws-parameterstore: prefix config import #723

Closed
wants to merge 10 commits into from

Conversation

eddumelendez
Copy link
Contributor

@eddumelendez eddumelendez commented Nov 22, 2020

In spring-boot 2.4, Volume Mounted Config Directory Trees was
added. This commit introduces the prefix aws-parameterstore: which
will resolve the values given the configuration properties supported
by parameter store integration. Also, if keys are added after the
prefix then just these will be resolved.

Use: aws-parameterstore: or aws-parameterstore:my-config-key or
aws-parameterstore:my-config-key;my-anoter-config-key

Closes gh-654

In `spring-boot` 2.4, `Volume Mounted Config Directory Trees` was
added. This commit introduces the prefix `aws-parameterstore:` which
will resolve the values given the configuration properties supported
by parameter store integration. Also, if keys are added after the
prefix then just these will be resolved.

Use: `aws-parameterstore:` or `aws-secretsmanager:my-config-key` or
`aws-parameterstore:my-config-key;my-anoter-config-key`

Closes spring-atticgh-654
@github-actions github-actions bot added component: parameter-store Parameter Store integration related issue type: dependency-upgrade A dependency upgrade type: documentation A documentation update labels Nov 22, 2020
}
}

public AwsParamStorePropertySource createPropertySource(String context, boolean optional,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to how i suggested in SM integration, we should add logging information: 21011e6#diff-ab9058ccbead5f4685b9fc609e6e10808f622475492ea1b099af6994edfa3e70R80

protected AwsParamStoreProperties loadConfigProperties(Binder binder) {
AwsParamStoreProperties properties = binder
.bind(AwsParamStoreProperties.CONFIG_PREFIX, Bindable.of(AwsParamStoreProperties.class))
.orElse(new AwsParamStoreProperties());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't orElseGet be used?

@maciejwalkowiak
Copy link
Contributor

@eddumelendez what about the other things I mentioned?

@maciejwalkowiak
Copy link
Contributor

Replaced by #750

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: parameter-store Parameter Store integration related issue type: dependency-upgrade A dependency upgrade type: documentation A documentation update
Development

Successfully merging this pull request may close these issues.

2 participants