Spring Cloud
Cloud Config
Refresh config at runtime
- Add
@RefreshScope
to your Spring configuration class to have parameters be reloadable at runtime. - Add
management.endpoints.web.exposure.include=refresh
to yourapplication.properties
to allow unrestricted access to/actuator/refresh
. - Make changes to config
- Send a POST request to the refresh endpoint:
$ curl -X POST http://<host>/actuator/refresh
AWS
Parameter Store
-
Spring Cloud with AWS Parameter Store (opens in a new tab)
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-aws-parameter-store-config</artifactId> </dependency>
Secrets Manager
-
Spring Cloud with AWS Secrets Manager (opens in a new tab)
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-aws-secrets-manager-config</artifactId> </dependency>