This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 68b4e80c1e6d6ad21bfae4493eb692259c287b5a
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Mon Jul 20 08:17:13 2020 +0200

    Camel-AWS2-IAM needs to have aws-global as default region so it will work 
ootb
---
 .../java/org/apache/camel/component/aws2/iam/IAM2Configuration.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Configuration.java
 
b/components/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Configuration.java
index a394abd..798a866 100644
--- 
a/components/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Configuration.java
+++ 
b/components/camel-aws2-iam/src/main/java/org/apache/camel/component/aws2/iam/IAM2Configuration.java
@@ -22,6 +22,7 @@ import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriParams;
 import org.apache.camel.spi.UriPath;
 import software.amazon.awssdk.core.Protocol;
+import software.amazon.awssdk.regions.Region;
 import software.amazon.awssdk.services.iam.IamClient;
 
 @UriParams
@@ -46,7 +47,7 @@ public class IAM2Configuration implements Cloneable {
     @UriParam
     private Integer proxyPort;
     @UriParam
-    private String region;
+    private String region = Region.AWS_GLOBAL.id();
     @UriParam(defaultValue = "false")
     private boolean pojoRequest;
     @UriParam(defaultValue = "false")

Reply via email to