I have recently added Parameter Store support via this library in addition to the existing Consul support to our application of ours. The latter periodically polls Consul for values and applies them to the application context - this makes it incredibly useful when we need to adjust logging levels, for instance.
We do not see such behaviour with the Parameter Store support in this library. Would it be possible to port across the functionality? The same may be relevant to Secrets Manager support, although there may be ramifications for connections such as JDBC.
I currently have tested this
@RefreshScope
@RestController
public class HelloRestController {
@Value("${hello.message}")
private String hello;
@GetMapping("/hello/{name}")
public String hello(@PathVariable String name) {
return this.hello + " " + name;
}
}
aws ssm put-parameter --name "/config/application/hello.message" --type String --value "Hello"Helloaws ssm put-parameter --name "/config/application/hello.message" --value "Hola" --overwritecurl -X POST http://localhost:8080/actuator/refreshMake sure you have spring-boot-starter-actuator dependency and the following property management.endpoints.web.exposure.include=refresh.
Most helpful comment
I currently have tested this
aws ssm put-parameter --name "/config/application/hello.message" --type String --value "Hello"Helloaws ssm put-parameter --name "/config/application/hello.message" --value "Hola" --overwritecurl -X POST http://localhost:8080/actuator/refreshMake sure you have
spring-boot-starter-actuatordependency and the following propertymanagement.endpoints.web.exposure.include=refresh.