Amazon S3: Copy File
Description
Amazon S3: Copy File plugin step copies the file (object) from one bucket to another in Amazon S3.
Notes:
- To copy a file in or from a folder, specify the folder name and file name separated by the delimiter "/". The folder will be created, if the folder is not present in the Destination bucket. For example, "foldername/filename.extension".
- Provide a valid File extension in Destination Key, same as the extension of the File, given in the Source Key field.
- If Destination Key/Filename is empty, it will consider Source Key's foldername and filename.extension during copying the files.
- If the filename.extension is to be copied at the Destination root path and the source path contains foldername(s)/filename.extension then in such case only the filename.extension needs to be provided in the Destination Key/Filename field.
- For version-disabled buckets, the version ID will be displayed as null in the output.
Reference
Configurations
| Field Name | Description |
|---|---|
| Step Name | Specify a unique name for the step. |
| Connection tab: | For the Amazone S3 connection fields details, click Common Tab: Connection Fields |
| Input tab: | |
| Input fields | |
| Source Bucket | Specify the name of the bucket from which you want to copy the file. |
| Button: Get | Click the button to populate the list of available Buckets. |
| Source Key/Filename | Specify or select the source key or filename that you want to copy from the source bucket to the destination bucket. The field type is String. This field is mandatory. |
| Version ID (Source Key) | Specify or select the specific version ID of the file to be copied. To use the version ID, you must enable Bucket versioning. |
| Destination Bucket | Specify or select the name of the bucket to which you want to copy the file. Note: The region of the destination bucket must be the same as the region in the Connection parameter. The field type is String. This field is mandatory. |
| Button: Get | Click Get button populates the list of Buckets available in the region, which is provided in the Connection parameters. |
| Destination Key/Filename | Use the field to rename the filename after copying the file. |
| Output tab: | |
| Output fields | |
| Destination Key Version ID | Specify the output variable name in the field. The field returns the version ID of the destination key. Default output variable name: DestinationKeyVersionID. The field type is String. This field is mandatory. |