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 7c3b537f97fb4f178a933751dcf5929b1e80b50b
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Thu Feb 17 11:30:49 2022 +0100

    CAMEL-17644 - Support ability to load properties from Vault/Secrets cloud 
services - aws secrets manager - docs
---
 .../main/docs/aws-secrets-manager-component.adoc   | 34 ++++++++++++++++++++--
 1 file changed, 31 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
 
b/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
index 60e40d8..4a3b4ff 100644
--- 
a/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
+++ 
b/components/camel-aws/camel-aws-secrets-manager/src/main/docs/aws-secrets-manager-component.adoc
@@ -53,9 +53,9 @@ To use this function you'll need to provide credentials to 
AWS Secrets Manager S
 
 [source,bash]
 ----
-export $AWS_ACCESS_KEY=accessKey
-export $AWS_SECRET_KEY=secretKey
-export $AWS_REGION=region
+export $CAMEL_VAULT_AWS_ACCESS_KEY=accessKey
+export $CAMEL_VAULT_AWS_SECRET_KEY=secretKey
+export $CAMEL_VAULT_AWS_REGION=region
 ----
 
 At this point you'll be able to reference a property in the following way:
@@ -72,6 +72,34 @@ At this point you'll be able to reference a property in the 
following way:
 
 Where route will be the name of the secret stored in the AWS Secrets Manager 
Service.
 
+Also you are able to get particular field of the secret, if you have for 
example a secret named database of this form:
+
+[source,bash]
+----
+{
+  "username": "admin",
+  "password": "password123",
+  "engine": "postgres",
+  "host": "127.0.0.1",
+  "port": "3128",
+  "dbname": "db"
+}
+----
+
+You're able to do get single secret value in your route, like for example:
+
+[source,xml]
+----
+<camelContext>
+    <route>
+        <from uri="direct:start"/>
+        <log message="Username is {{aws:database:username}}"/>
+    </route>
+</camelContext>
+----
+
+Or re-use the property as part of an endpoint.
+
 For the moment we are not considering the rotation function, if any will be 
applied, but it is in the work to be done.
 
 The only requirement is adding the camel-aws-secrets-manager jar to your Camel 
application.

Reply via email to