[
https://issues.apache.org/jira/browse/CAMEL-14598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17059382#comment-17059382
]
Claus Ibsen commented on CAMEL-14598:
-------------------------------------
Okay have it working now
{code}
16:04:09.971 [main] INFO o.apache.camel.main.BaseMainSupport -
Auto-configuration component aws-s3 summary:
16:04:09.972 [main] INFO o.apache.camel.main.BaseMainSupport -
camel.component.aws*.secretkey=mySecretKey
16:04:09.972 [main] INFO o.apache.camel.main.BaseMainSupport -
camel.component.aws*.accesskey=myAccessKey
16:04:09.972 [main] INFO o.apache.camel.main.BaseMainSupport -
camel.component.aws*.region=US_EAST_1
16:04:09.987 [main] INFO o.apache.camel.main.BaseMainSupport -
Auto-configuration component aws-sqs summary:
16:04:09.987 [main] INFO o.apache.camel.main.BaseMainSupport -
camel.component.aws*.secretkey=mySecretKey
16:04:09.987 [main] INFO o.apache.camel.main.BaseMainSupport -
camel.component.aws*.accesskey=myAccessKey
16:04:09.987 [main] INFO o.apache.camel.main.BaseMainSupport -
camel.component.aws*.region=US_EAST_1
{code}
Above there is a summary that the 2 aws components has both been configured
with the same options that are using wildcards (*)
> Component Properties aliases
> ----------------------------
>
> Key: CAMEL-14598
> URL: https://issues.apache.org/jira/browse/CAMEL-14598
> Project: Camel
> Issue Type: New Feature
> Components: camel-core, camel-main
> Reporter: Luca Burgazzoli
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 3.2.0
>
>
> For some components such as those related to AWS service, each component has
> its own authentication configuration option so in case you want to use
> multiple services in the same integration, then you'll end up having to
> repeat them, like:
> {code}
> # S3
> camel.component.aws-s3.access-key={{env:AWS_ACCESS_KEY}}
> camel.component.aws-s3.secret-key={{env:AWS_SECRET_KEY}}
> camel.component.aws-s3.region={{env:AWS_REGION}}
> # SNS
> camel.component.aws-sns.access-key={{env:AWS_ACCESS_KEY}}
> camel.component.aws-sns.secret-key={{env:AWS_SECRET_KEY}}
> camel.component.aws-sns.region={{env:AWS_REGION}}
> {code}
> So I think it would be nice to have an option to define component properties
> aliases so we can rewrite the configuration above like:
> {code}
> aws.access-key={{env:AWS_ACCESS_KEY}}
> aws.secret-key={{env:AWS_SECRET_KEY}}
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)