You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/parameter-store.adoc
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,33 @@ With such config, properties `spring.datasource.url` and `spring.datasource.user
88
88
NOTE: Prefixes are added as-is to all property names returned by Parameter Store. If you want key names to be separated with a dot between the prefix and key name, make sure to add a trailing dot to the prefix.
89
89
90
90
91
+
Sometimes it is useful to group multiple properties in a text-based format, similar to application.properties. With Spring Cloud AWS, you can load a Parameter Store parameter as a text-based key/value configuration by using the spring.config.import property with the ?extension= suffix:
NOTE: Supported ?extension= types are `properties`, `json` and `yaml`. When any other format is specified exception will be raised and application will fail to start!
99
+
100
+
101
+
All parameters stored under this path will be interpreted as key/value pairs. For example, if the value of a parameter is:
NOTE: Standard Parameter Store parameters are limited to 4 KB of data.
114
+
115
+
This approach allows you to maintain multiple related properties in a single parameter, making configuration management simpler and more organized.
116
+
117
+
91
118
=== Using SsmClient
92
119
93
120
The starter automatically configures and registers a `SsmClient` bean in the Spring application context. The `SsmClient` bean can be used to create or retrieve parameters from Parameter Store.
Copy file name to clipboardExpand all lines: spring-cloud-aws-autoconfigure/src/test/java/io/awspring/cloud/autoconfigure/config/parameterstore/ParameterStoreConfigDataLoaderIntegrationTests.java
Copy file name to clipboardExpand all lines: spring-cloud-aws-parameter-store/src/main/java/io/awspring/cloud/parameterstore/ParameterStorePropertySource.java
0 commit comments