S3Upload component uploads all the files to a specified bucket.

Icon

Get the Access Key id and Secret Key from the AWS Management Console at https://console.aws.amazon.com/s3.

Icon

Provide AmazonS3FullAccess policy to the user to get the full access to the S3 service.


Configuration and Testing

S3 Configuration

The figure below illustrates the Component Property Sheet  (CPS) panel with Expert Properties view enabled.


Figure 1: Configuration panel of S3Upload

Following are the properties of S3 Configuration
Access Key id

Specify the Access Key id

Secret Key

Specify the Secret Key

Region

The region of AWS Management console.

Chunk Size

Chunk Size should be more than or equal to 5 MB. If the file size is more than 5MB, it is uploaded as parts of specified chunk sizes. If the provided file is less than 5MB, it will be uploaded as a single chunk.

Bucket Name

Specify the S3 bucket name. As the component does not create the bucket, specify the existing one only.

File Name Prefix

The specified prefix is prepended to the  uploaded file.

Correlation Id Property

Specify the Correlation Id message property name. The input messages will be grouped based on the correlation id property. Messages which has the same property value will be treated as one file. This value is appended to the FileNamePrefix (if FileNamePrefix is specified), and treated as the file name.

Completeness Condition Property Name

Name of the Completeness Condition Property. Component treats that the file was completed on receiving a message with completeness property equals to completeness property value

Completeness Condition Property Value

Value of the Completeness Condition property. Component treats that the file was completed on receiving a message with completeness property equals to completeness property value

Bucket Name Property

Specifies the Bucket name property name. Bucket name can be provided from the input whose value takes precedence over the one provided in CPS.

Sequence Number Property

This property is used to identify duplicate sequence numbers; discards the duplicate input arrived on its input port.

Is Input Binary

Specify whether the input messages are byte messages or not.

Is Text Base64 Encoded

Specifiy if the input text needs decryption using Base64.

ThreadPool Configuration

Specify the number of threads, if the upload needs to be done using multiple threads.

Functional Demonstration

Uploading a file into the AWT Management console and displaying the status. Configure S3Uploader as described in Configuration and testing section and use feeder and display component to send sample input and check the response respectively.


Figure 2: Demonstrating a scenario with sample input and output

Input Message


Figure 3: Input XML sent using feeder

Output Message


Figure 4: Output demonstrating the status of the uploading file

Adaptavist ThemeBuilder EngineAtlassian Confluence