Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12647

Problem in setting region for camel AWS-SQS endpoint

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.21.1
    • Fix Version/s: 2.21.2, 2.22.1, 2.23.0
    • Component/s: camel-aws
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      It gives FailedToCreateRouteException while creating camel AWS-SQS endpoint with ARN.

      For example, below producer or consumer endpoint is not being created.

      uri="aws-sqs://arn:aws:sqs:us-east-2:account:MyQueue?accessKey=xxx&secretKey=yyy&region=US_EAST_2"

      And it throws error as follows.

      Caused by: java.lang.IllegalArgumentException: No enum constant com.amazonaws.regions.Regions.us-east-2
      	at java.lang.Enum.valueOf(Enum.java:238)
      	at com.amazonaws.regions.Regions.valueOf(Regions.java:26)
      	at org.apache.camel.component.aws.sqs.SqsEndpoint.createClient(SqsEndpoint.java:310)
      

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              saravanakumar Saravanakumar Selvaraj
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: