Contact Free trial Login

Amazon S3 Studio Configuration - Mule 4

To configure a connector in Anypoint Studio:

  1. Install the connector.

  2. Configure the connector.

  3. Configure an input source for the connector.

Install Amazon S3

  1. In Anypoint Studio, create a Mule Project.

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

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

  4. In Exchange, select All assets and search for Amazon S3.

  5. Select Amazon S3 Connector - Mule 4 and click Add to project.

  6. Follow the prompts to install the connector.

Configure Amazon S3

To configure this connector:

  1. Drag and drop a connector operation into 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 click Amazon S3 Configuration.

  4. Click OK.

  5. Select Amazon S3 Configuration (Configuration), and click Edit.

  6. Specify the global element properties:

    Global Element Properties
    Parameter Description

    Name

    Name used to reference the connector instance.

    Access Key

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

    Secret Key

    Key that plays the role of a password.

    Try Default AWS Credentials Provider Chain

    Indicates whether to use temporary credentials.

    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, Mule recommends that you use a configuration file.

  7. If you are:

    • Using the default Amazon S3 storage, leave the default entries for Proxy and Advanced tabs.

    • Connecting to a different storage than the default AWS S3, specify its URL in the the Advanced tab’s S3 Compatible Storage URL field .

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

    Validating a connection with Test Connection requires that you have permission in AWS IAM to the action s3:ListAllMyBuckets. If you don’t have this permission, the test fails. However, you can still use the connector and the operations to which you have access.

    Access to operations on Amazon S3 is further controlled through policies. It is not always possible to validate your credentials before the exact operation for which you have access completes. This can vary based on the bucket name and other parameters. For example, the test connection can fail if your credentials have a restricted policy.

  9. Click OK to save the global connector configurations.

Example of configuring S3-compatible Storage

The Minio Project is one example of Amazon S3 storage. If you configure this storage locally you might need to set the S3 Compatible Storage URL to http://127.0.0.1:9000.

Configure an Input Source

Configure an input source for the Amazon S3 connector such as a connector operation, HTTP Connector, or scheduler.

You can put the following operations for the connector in the Source area of the Studio canvas:

  • On Deleted Object - Initiates access to your app when an Amazon S3 object is deleted.

  • On New Object - Initiates access to your app when an Amazon S3 object is created.

Next Step

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

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.