...
See Stream using Amazon S3 Functions - Acme EV for an example how the Amazone S3 collector and forwarder can be used in a stream.
Anchor | ||||
---|---|---|---|---|
|
For both functions, you need to configure AWS Credentials and File location.
AWS Credentials
The AWS Credentials can either be specified directly in the configuration dialog for the functions, or in an AWS Secret in the Secrets Wallet, and must contain:
Setting | Description |
---|---|
Access Key | The identifier used to sign the requests sent to Amazon S3, is referenced by S3 as the Access Key ID. |
Secret Key | The Secret Key is used in conjunction with the Access Key to cryptographically sign Amazon AWS requests. When you create the Access Key in Amazon S3 you can view and download the Secret Key. S3 references this as the Secret Access Key. |
File location
The File location settings include:
Setting | Description | ||
---|---|---|---|
Bucket | The Bucket is the public cloud storage resource available in Amazon S3. | ||
Folder | Enther the path to the folder you want to collect data from and push data to when using the Amazon S3 functions in this field.
|
Anchor | ||||
---|---|---|---|---|
|
With the Amazon S3 Collector you can collect data from your AWS S3 bucket for processing in your stream.
...
Note |
---|
Note! During collection, the following applies:
For all supported archive file types, the following applies:
There are exceptions to the filename patterns when it comes to collector functions. |
Anchor | ||||
---|---|---|---|---|
|
With the Amazon S3 Forwarder function you can send data to an Amazon S3 bucket from your stream.
...
In Output file Information section, specify how you want to handle the output file(s) in Filename options:
Filename option | Action |
---|---|
Collector filename | Select this option if you want to keep the same filename as on the input file(s). |
Custom filename | Select this option to define a new filename for the output files, see Configuring Dynamic Naming in Fields for information on how to define file names with additional flexibilit |
...
File format | Depending on what option you select in the this drop-down, you will see different complimentary settings beneath the drop-down list. | ||||||
---|---|---|---|---|---|---|---|
CSV | Select this option to send the files in CSV format. Select the Include table header check box to include the table header in the output file(s). Select the delimiter for the CSV file(s) in the Delimiter field. Comma is selected by default but you can also select Tab, Semicolon, Space, or Other. If you select Other you can specify a custom delimiter in the Custom delimiter field that will then be displayed. You can select to compress the files by selecting the Compress file option. A drop-down list will then be displayed in which you can select either Zip or GZip. Select the Bucket owner full control option to enable full control over any new objects that are written by other AWS accounts. | ||||||
Excel | Select this option to send the output file in Excel format. You can then select to specify the name of the sheet in the Sheet name field that is displayed. The default name is “Sheet 1”. You can select to compress the files by selecting the Compress file option. A drop-down list will then be displayed in which you can select either Zip or GZip. Select the Bucket owner full control option to enable full control over any new objects that are written by other AWS accounts. | ||||||
Buffer | Select this option to send the output file in Buffer format, which is useful if you are reading or processing files containing binary data for performance reasons, for example. You can select to compress the files by selecting the Compress file option. A drop-down list will then be displayed in which you can select either Zip or GZip. Select the Bucket owner full control option to enable full control over any new objects that are written by other AWS accounts. | ||||||
JSON | Select this option to send the output file in the JSON format.
You can then select the output format you want to use in the Action on record: drop-down list;
You can select to compress the files by selecting the Compress file option. A drop-down list will then be displayed in which you can select either Zip or GZip. Select the Bucket owner full control option to enable full control over any new objects that are written by other AWS accounts. You can also select the Output file in pretty print option to format the JSON files for easier reading.
|
...
You have now configured the Amazon S3 Forwarder function.
Anchor | ||||
---|---|---|---|---|
|
You can view and access the following metadata properties of Amazon S3. To view the metadata, see information on the meta object in the Script function documentation.
Property name | Description | ||
---|---|---|---|
fileName | Name of the file. Syntax
| ||
filePath | Path from where the file is collected. The file can be either in the Excel or CSV format. Path format: Syntax
| ||
fileSize | Size (in bytes) of the file. Syntax
| ||
sheetName | Name of the sheet of the Excel file. Syntax
| ||
collectionTime | Timestamp when the file is collected. Syntax
|
...