Contact Us 1-800-596-4880

Amazon SQS Connector 5.7 Studio Configuration - Mule 4

To configure a connector in Anypoint Studio:

  1. Install the connector.

  2. Configure an input source for the connector.

  3. Configure the connector.

Install the Connector

Installing the connector adds it to a Studio project. Anypoint Studio provides two ways to install a connector:

  • Use the Exchange application in the Studio taskbar.

  • Use the Exchange icon in the Mule Palette view.

Install the Connector from the Studio Taskbar

  1. In Studio, create a Mule project.

  2. Click the Exchange icon (X) in the upper left of the Studio task bar.

  3. In Exchange, click Login and supply your Anypoint Platform username and password.

  4. In Exchange, search for Amazon SQS.

  5. Select Amazon SQS.

  6. Click Add to project.

  7. Follow the prompts to install the connector.

Install the Connector from the Mule Palette View

  1. In Studio, create a Mule project.

  2. In the Mule Palette view, click (X) Search in Exchange.

  3. In Add Modules to Project, type Amazon SQS in the search field.

  4. Click the connector name in Available modules.

  5. Click Add.

  6. Click Finish.

Configure an Input Source

Configure an input source for the connector, such as a connector operation, HTTP Listener, or Schedule.

If you use the Receive Messages input source in cluster mode and want to receive messages on the primary node only, select the Primary node only field of the Advanced sub-tab on the Receive messages tab. For more information, see Receiving Messages in Cluster Mode.

Configure the Connector

To use Amazon SQS Connector in your Mule application, configure a global element that can be used by all Amazon SQS Connectors in the application.

  1. Drag a connector operation onto the Studio canvas.

  2. To create a global element for the connector, click the Global Elements tab at the base of the canvas, and then click Create.

  3. In the Choose Global Type window, expand Connector Configuration and select Amazon SQS Configuration:

    Select Connector for Global Element
  4. Click OK.

  5. Specify the global element properties.

    You can either enter your credentials into the global configuration properties or reference a configuration placed in a file in the src folder of your project file that contains these values. For simpler maintenance and better reuse of your project, use a configuration file:

    Configure Global Element
  6. Configure the parameters as follows:

    Field Description

    Name

    Name used to reference the configuration

    Session Token

    Session token used to validate the temporary security credentials

    Access Key

    Alphanumeric text string that uniquely identifies the user who owns the account

    Secret Key

    Key that acts as a password

    Try AWS Credentials Provider Chain

    Drop-down menu that controls whether temporary credentials should be used

    Region Endpoint

    Regional endpoint to process your requests

    Default Global URL

    URL of the Amazon SQS queue to act upon

    When you provide a queue URL in the Default Global Queue URL field of the global element, the connector automatically creates the queue and sets the URL of this queue as the provided value. All Amazon SQS message processors that reference the global element perform operations using this queue URL.

    To reference a different queue URL for a particular message processor in the flow, perform the operation using the Queue URL attribute provided by the message processor.

  7. Leave the default entries for the Proxy tab.

  8. Click Test Connection to confirm that the parameters of your global configuration are accurate and that Mule is able to connect successfully to your instance of Amazon SQS.

  9. Click OK.

Next Step

After configuring this connector in Studio, see the Additional Configuration Information topic for more configuration steps.

View on GitHub