You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/02/17 12:25:34 UTC

[camel] 01/02: CAMEL-17644 - Support ability to load properties from Vault/Secrets cloud services - aws secrets manager - align jbang example

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 fe507cee6a14c184620b77cb2fcdca211c426ef4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 17 12:27:22 2022 +0100

    CAMEL-17644 - Support ability to load properties from Vault/Secrets cloud services - aws secrets manager - align jbang example
---
 dsl/camel-jbang/camel-jbang-main/README.md | 25 ++++++++++++++++++++++---
 1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-main/README.md b/dsl/camel-jbang/camel-jbang-main/README.md
index a334e4f..5b05545 100644
--- a/dsl/camel-jbang/camel-jbang-main/README.md
+++ b/dsl/camel-jbang/camel-jbang-main/README.md
@@ -63,21 +63,40 @@ You need to first export the credentials as enviroment variables:
 
 [source,sh]
 ----
-export AWS_REGION=<region>
-export AWS_SECRET_KEY=<secretKey>
-export AWS_ACCESS_KEY=<accessKey>
+export CAMEL_VAULT_AWS_REGION=<region>
+export CAMEL_VAULT_AWS_SECRET_KEY=<secretKey>
+export CAMEL_VAULT_AWS_ACCESS_KEY=<accessKey>
+----
+
+or you can specify them as properties in a separated file:
+
+[source,sh]
+----
+camel.aws.vault.access.key=<accessKey>
+camel.aws.vault.secret.key=<secretKey>
+camel.aws.vault.region=<region>
 ----
 
 Create the secret on AWS Secrets Manager. 
 
 Login into your AWS Account and create a secret called "finnhub_token" with the Finnhub.io token value, you retrieved from finnhub_token.
 
+If you're using the env properties approach:
+
 Then you should be able to add
 
 ```
 jbang --fresh -Dcamel.jbang.version=3.16.0-SNAPSHOT  camel@apache/camel run --modeline=true  ../examples/aws-secrets-manager-properties.yaml
 ```
 
+If you're using the properties file approach:
+
+Then you should be able to add
+
+```
+jbang --fresh -Dcamel.jbang.version=3.16.0-SNAPSHOT  camel@apache/camel run --modeline=true --properties=<path>  ../examples/aws-secrets-manager-properties.yaml
+```
+
 And you should see the following output:
 
 ```