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

Problem in setting region for camel AWS-SQS endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.21.1
    • 2.21.2, 2.22.1, 2.23.0
    • camel-aws
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: