Skip to main content

Amazon S3: Download File

Description

Amazon S3: Download File plugin step downloads a single file (object) from a bucket on Amazon S3.

Note:

Provide access (whitelist) to the following URL through your firewall and network: https://amazonaws.com/

Known issue

If the internet connection is disconnected in the middle of downloading a file, the contents will be partially downloaded to the point where the internet was disconnected.

Reference

REST API: Get Object

Configurations

Field NameDescription
Step NameSpecify a unique name for the step.
CONNECTION tab:Connection fields
RegionSpecify a valid AWS region or click the Get button to choose a region from the Region Explorer window.
The field type is String. This field is mandatory.
Button: GetClick Get button to open the Region Explorer window populated with the list of Regions available on the Amazon S3 instance. Choose a Region.
Access Key:Access key to authenticate an Amazon S3 cloud instance.
Accept Values from fieldsLeave checkbox unchecked to accept Access Key value from a field in the previous steps of the stream using a drop down list.
Else enable checkbox for Access Key field to appear as Text box.
Access KeySpecify the Access Key to authenticate Amazon S3 cloud instance. If checkbox above is enabled Access Key field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Access Key field appears as a drop down to select fields from previous steps.
The field type is String. This field is mandatory.
Secret Key:Secret key to authenticate Amazon AWS cloud.
Accept Values from fieldsLeave checkbox unchecked to accept Secret Key value from a field in the previous steps of the stream using a drop down list. Else enable checkbox for Secret Key field to appear as Text box.
Secret KeySpecify the Secret Key to authenticate Amazon S3 cloud instance. If checkbox above is enabled Secret Key field appears as Text box and accepts static values or variables. Else if checkbox above is disabled Secret Key field appears as a drop down to select fields from previous steps.
The field type is String. This field is mandatory.
Button: Test ConnectionClick Test Connection button to verify whether the connection is available or not. Region, Access key and Secret Key are mandatory to authenticate Amazon S3 cloud instance.
For the purpose of verification fields coming from previous steps are not allowed since field values can only be accessed when workflow is in running state. Static values and environment variables are allowed.
INPUT tab:Input fields
Bucket NameSpecify the name of the S3 bucket from where the object is to be downloaded.
The data type is string. The field is mandatory.
GetClick the button to populate the list of available Buckets.
Key NameThe object name that is to be downloaded. It downloads a single object(file). If the file resides in any folder, it should be given as “foldername/filename.extension”.
The data type is string. The field is mandatory.
Notes:
- The Key Name field is the Object’s Key name.
- If the file to be downloaded resides in any folder/subdirectory, the Key Name should be given as “foldername/filename.extension”.
Output Folder PathFolder path to download a file at the given location.
The data type is string. The field is mandatory.
BrowseTo browse the folder path to download a file from Amazon S3.
Version IDThe specific version ID of the object to be downloaded. Bucket versioning should be enabled. The data type is String.
Notes:
- To download an object of a specific version, S3 bucket versioning should be enabled.
- If the version ID is not given, the latest file (without the ‘L’ marker) is downloaded.
ADDITIONAL INPUT tab:Additional Input fields
Delete Output Folder Contents Before DownloadingSpecify Yes to delete output folder contents before downloading else specify No.
Allowed values: Yes, No.
Default value: No.
The data type is String.
Add Date TimeStamp For Duplicate FileSpecify Yes to add Date TimeStamp for duplicate files.
Allowed values: Yes, No.
Default value: No.
The data type is String.
Add File To ResultSpecify Yes to add the downloaded files to the result set and display the download link on AE otherwise else select No.
Allowed values: Yes, No.
Default value: No.
The data type is String.
OUTPUT tab:Output fields
File OverwrittenSpecify the output variable name in the field. The default output variable name is FileOverwritten.
If the downloaded file already exists in the given location, the output response is Yes, else the response is No.