Monitoring files on amazon S3Last Updated: 12/04/2015 Introduced in Verision: 2.0
Amazon Web Services’ S3 offers cloud-based storage that can be integrated with your system. Files that are stored on Amazon S3 can be monitored and listed with the ListObjects component.
To list the files in your Amazon S3 account, first set up your Amazon WebServices Settings in the portal. Next, in the Flow Designer, drag a ListObject component to your workspace from the Integration > Internal Services > AmazonS3Service category in the Components panel.
Our example flow will use a form to list the files contained in an Amazon S3 bucket. This example assumes that Amazon WebServices Settings have already been configured, and that the form which will display the files – FileList – has already been created, but not designed.
We’ll begin our example in the Flow Designer. [Form] FileList has already been placed in the workspace and its outcome path – OK – is connected to the End Step.
We will drag a ListObjects component to the workspace. It can be found in the Components panel, under the category Integration > Internal Services > AmazonS3Service.
In the Properties panel, under Inputs > bucketName, we will select Constant in the Mapping type dropdown and fill in Value with the name of our S3 bucket – “VideoSamples”.
Next, we will connect the outcome paths of our flow and open [Form] FileList in the Form Designer.
In the Form Designer, we will place a Data Grid component on the workspace and resize it to fill the form. It can be found in the Components panel, under the List category.
In the Properties panel, under Input Data, we will open the Type selector and select S3ObjectData. We will also fill in the Data Name field with “ListOfFilesToShow”.
This completes our form, so will save it and close the Form Designer.
Back in the Flow Designer, we will select [Form] FileList and open the Mapping Editor.
In the Mapping Editor, we will map the output ListObjects1_Output to ListOfFilesToShow.
This completes our flow, so we will open it in the debugger. Our form contains a list of objects contained in our VideoSamples S3 bucket.
We can see the same files listed when we view the contents of our VideoSamples S3 bucket through the Amazon AWS Management Console.