This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 3bdf76cf46be25a62ee3a8d9cf08d8aeb0fa9f81 Author: Andrea Cosentino <[email protected]> AuthorDate: Mon Feb 14 15:15:55 2022 +0100 CAMEL-17644 - Support ability to load properties from Vault/Secrets cloud services - AWS Secrets Manager - Docs --- .../ROOT/pages/using-propertyplaceholder.adoc | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc b/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc index d269928..3f79a92 100644 --- a/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc +++ b/docs/user-manual/modules/ROOT/pages/using-propertyplaceholder.adoc @@ -403,6 +403,7 @@ The xref:components::properties-component.adoc[Properties] component includes th * `service` - A function to lookup the property from OS environment variables using the service naming idiom * `service.name` - A function to lookup the property from OS environment variables using the service naming idiom returning the hostname part only * `service.port` - A function to lookup the property from OS environment variables using the service naming idiom returning the port part only +* `aws` - A function to lookup the property from AWS Secrets Manager service. These functions are intended to make it easy to lookup values from the environment, as shown in the example below: @@ -468,6 +469,33 @@ And we can use default values if the service has not been defined, for example t </camelContext> ---- +=== Using AWS Secrets Manager Property Function + +To use this function you'll need to provide credentials to AWS Secrets Manager Service as environment variables: + +[source,bash] +---- +export $AWS_ACCESS_KEY=accessKey +export $AWS_SECRET_KEY=secretKey +export $AWS_REGION=region +---- + +At this point you'll be able to reference a property in the following way: + +[source,xml] +---- +<camelContext> + <route> + <from uri="direct:start"/> + <to uri="{{aws:route}}"/> + </route> +</camelContext> +---- + +Where route will be the name of the secret stored in the AWS Secrets Manager Service. + +For the moment we are not considering the rotation function, if any will be applied, but it is in the work to be done. + === Using custom property placeholder functions The xref:components::properties-component.adoc[Properties] component allow to plugin 3rd party functions which can be used during parsing of the property placeholders.
