Once you establish a connection to the Amazon S3 storage service, you can proceed to configure the data source in Sigma Studio for transferring the files to the listed Amazon S3 cloud-based storage service.
For transferring the files to the S3 cloud-based storage service using Sigma Studio, perform the following steps:
- Right-click the created Amazon S3 connection and select the Create Data Source optionClick the Data Source icon on an existing Amazon S3 connection, e.g. NEW AMAZON S3 CONNECTION.
Refer Connectors - – Amazon S3 for more information on creating an Amazon S3 connection.
The Create New Data Source page appears. - Enter a unique data source name in the Data Source Name field, e.g. AMAZON S3 DS.
If you want to fetch a particular file from the S3 cloud-based storage service, specify the relevant file path and the accurate file name in the In the Bucket Name field, provide the bucket name present in the connected S3 storage service, e.g. sigmareports.
respectivelyNote The File Path and File Name are optional fields
.
Note For transferring the files to the S3 cloud-based storage service, there is no need to specify the file path and the file name. Only to receive or fetch files from the S3 Currently, Sigma Studio supports only the transfer of files to the S3 bucket cloud-based storage service, you must specify the relevant file path and the accurate file name.
In the Bucket Name field, provide the bucket name present in the connected S3 storage service, e.g. barathbucket23456.
Note The Local File Path and File Name are optional fields. Both the Local File Path and File Name fields are not required to create a FTP DS, with the Put File Request Type. It is sufficient only if you provide the appropriate server path in the Relative Path on Server field. You can receive files of following formats from the FTP server. For the transferring of files to the S3 cloud based storage service, the supported formats are listed as follows:
- CSV
- XLS
- DOCX
- TXT
- HTML
- XML
Click Save to save the FTP S3 data source.
Warning When you try to exit the Data Source screen, before saving the configured FTP S3 data source, a warning pop-up message appears, as shown in the following screen shot:
- Click Cancel, if you do not want to exit the Data Source screen.
- Click Ok, if you want to exit the Data Source screen.
A success message for creating the data source appears as shown in the following screenshot:Click Ok.
Note In order to trigger the FTP service connection, the CT platform's server-side API, CT.ftp must be used while passing the ExecutionContext action in a Java Handler class. Refer the following sample code snippet for better understanding on the triggering process:
Here, on the following sample code snippet a new ExecutionContext action is created within which a map (HashMap) is built. The FTP datasource ID is passed as the input to activate the connection request within which the CT.ftp API is passed to trigger the process.
Code Block language js ExecutionContext ec = new ExecutionContext(); Map inputParams1 = new HashMap(); inputParams1.put("DATA_SRC_ID","FTP_DS"); // FTP_DS refers to the Datasource ID. ec.setInitialRequestData(inputParams1); try { CT.ftp(ec); } catch(Exception e){ }
Client Customization
To customize a FTP an Amazon S3 data source for a specific corporate client or customer, perform the following steps in Sigma Studio:
- Right-click the newly created FTP Hover the mouse on the created Amazon S3 data source (e.g. FTP_AMAZON S3 DS) and click the icon. Proceed to select the Customize DS for Client option to configure a customized client data source.
The Edit Datasource page appears. Click the Client lookup field and select the Corporate Client or Customer of your choice, e.g. HIGHSCORE.
Note The Parent Data Source Id and Connection Name are non-editable fields. FTP S3 data source in the SQL format, while is used to delete the FTP S3 data source.
icon is used to export the- Provide a unique data source name in the Data Source Name field, e.g. HIGHSCORE FTP S3 DS.
- Select the Put File option in Request Type to send the requested file to the FTP server. Provide the appropriate file path on the FTP server to which the files need to be transferred to the server in the Relative Path on Server field
In the Bucket Name field, provide the accurate bucket name, which exists in the S3 storage service, e.g. sigmareports.
LocalNote The
LocalFile Path and File Name are optional fields. Both the
create a FTP DS, with the Put File Request TypeFile Path and File Name fields are not required if you want to transfer files to
appropriate server patha specific bucket in the S3 storage service. It is sufficient only if you provide the
Relative Path on Server fieldrelevant bucket name, specific to the selected corporate client or customer, in the
Bucket Name field.
- Click Save to save the customized FTP S3 data source for the selected HIGHSCORE client.
A confirmation message, indicating a successful save of the customized FTP S3 bucket data source, appears. - Click Ok.
Access the Information Report screen and configure the report with the relevant and appropriate configurations, as shown in the following screen shot:
Note For detailed information on creating reports, refer Configuring Reports.
Click the Additional Info tab.Click the Publishers drop-down list and select the FTP option.
Click the Publisher Data Source lookup field and select the relevant FTP data source, e.g. FTP_DS.
Note For making use of the the customized data source for a specific client, it is essential that the Parent FTP data source for the customized client data source should be aptly selected. The customized client FTP data source is HIGHSCORE FTP DS, whereas the Parent Data Source Id is FTP_DS. So, it is essential that the FTP_DS Parent Data Source is selected in the Publisher Data Source lookup field, while configuring a report in Sigma Studio.
Once the report is configured with essential attributes, click Save to save the report.
Access the relevant report, e.g. HIGHSCORE REPORT in the Sigma Application and click Run to generate the report.
Note For detailed information on generating the reports in Sigma Application, refer Generating a Report in Sigma. Once the report gets generated, the generated report can be found in the relevant server path, which was specified as the relative server path, while configuring the FTP data source in Sigma Studio.
The fetched data of the HIGHSCORE REPORT displayed in the XLS file, as shown in the following screen shot:
Once the S3 data source with the client customization is created, you can proceed to configure a report based on your needs and requirements. To configure reports for the S3 cloud-based storage service, refer Configuring S3 Storage Service for Reports.