Contact Free trial Login

Amazon S3 Additional Configuration Information - Mule 4

Create Object Operation

In the Create Object operation, set the Content Length to a value greater than zero. If the Content Length is set to zero (0), the Create Object operation creates a zero-byte object.

Use an AWS KMS Master Key

To encrypt objects that you want to store in S3 buckets using customer managed master keys, specify a Customer Master Key ID in the KMS Master Key field in the Create Object configuration.

Use the AWS Credentials Provider Chain in CloudHub

With the Default AWS Credentials Provider Chain, you can specify the access key and secret in the CloudHub environment:

  1. Use the following configuration to prepare a Mule app.

     <s3:config name="Amazon_S3_S3_configuration" doc:name="Amazon S3 S3 configuration"
        doc:id="DOC_ID" >
      <s3:basic-connection accessKey="${aws.accessKeyId}" secretKey="${aws.secretKey}"
        tryDefaultAWSCredentialsProviderChain="true"/>
     </s3:config>
  2. Export this configuration to get a deployable zip archive.

  3. Deploy to CloudHub and set the properties aws.accessKeyId and aws.secretKey through Runtime Manager > Settings > Properties.

  4. Finish deploying and testing.

The access key and secret key are not listed in the connector configuration. Instead, the correct values are used from the values specified in the settings.

Next Step

After you understand how to configure a master key and provide credentials, you can try out the Example.

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.