tS3Put
streaming mode.
tS3Put Standard properties
These properties are used to configure tS3Put running in the Standard Job framework.
The Standard
tS3Put component belongs to the Cloud family.
The component in this framework is available in all Talend
products.
Basic settings
Use existing connection |
Select this check box and in the Component List click the relevant connection component to |
Access Key |
The Access Key ID that uniquely identifies an AWS Account. For |
Secret Key |
The Secret Access Key, constituting the security credentials in To enter the secret key, click the […] button next to |
Inherit credentials from AWS role |
Select this check box to obtain AWS security credentials |
Assume role |
If you temporarily need some access permissions associated |
Region |
Specify the AWS region by selecting a region name from the |
Encrypt |
Select this check box and from the Key type drop-down list displayed,
select one of the following three options for encrypting the data on the client-side before sending to Amazon S3. For more information, see Protecting Data Using Client-Side Encryption.
|
Bucket |
Specify the name of the bucket, namely the top |
Key |
Specify the path to the file that will hold the If:
Warning: This field must not start with a slash (/).
|
File or Stream |
The path to the local file to be uploaded or the input stream For an example of how to use stream, see Reading data from a remote file in streaming mode. |
Server-Side Encryption |
Select this check box For more information about the server-side encryption, see Protecting Data Using Server-Side Encryption. |
Use KMS |
Select this check box This property is |
Customer Master Key |
Specify your own This property is |
Die on error |
This check box is cleared by default, meaning to skip the row |
Advanced settings
Config client |
Select this check box to configure client parameters.
Client parameter: select client Value: enter the parameter value. Not available when Use existing |
Enable Accelerate Mode |
Select this check box to enable fast, easy and secure transfers of files over long distances between your client and an S3 bucket. To take it into account, you should enable this acceleration mode on the S3 bucket in advance. |
STS Endpoint |
Select this check box and in the field displayed, specify the This check box is available only when the Assume role check box is selected. |
Part size (Mb) |
Specify the part size (in MB) when uploading an Part size is in the range 5MB to 5GB. A value less than 5 uploads the For information about S3 multipart upload, see Multipart Upload |
Access control |
Select this check box to set the access control list (ACL) for the With Access control selected, click the plus
button under the Access table to add a new line, where you can add an AWS user account and set permissions for it as follows.
Note:
|
tStatCatcher Statistics |
Select this check box to collect log data at the component |
Global Variables
ERROR_MESSAGE |
The error message generated by the component when an error occurs. This is an After |
Usage
Usage rule |
This component can be used alone or with other S3 components, |
Dynamic settings |
Click the [+] button to add a row in the table Once a dynamic parameter is defined, the Component List box in the Basic For examples on using dynamic parameters, see Reading data from databases through context-based dynamic connections and Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
Exchange files with Amazon S3
In this scenario, tS3Put is used to send a
file to the Amazon S3 server while tS3Get is used to get
that file.
Linking the components
-
Drop tS3Connection, tS3Put and tS3Get onto the
workspace. - Link tS3Connection to tS3Put using the OnSubjobOk trigger.
-
Link tS3Put to tS3Get using the OnSubjobOk
trigger.
Configuring the components
-
Double-click tS3Connection to open its
Basic settings view. -
In the Access Key and Secret Key fields, enter the authentication
credentials. -
Double-click tS3Put to open its Basic settings view.
-
Select the Use existing connection check
box to reuse the connection. -
In the Bucket field, enter the bucket
name. -
In the Key field, enter the name of the
file to be saved on the S3 server. -
In the File field, enter the file to be
uploaded to the S3 server. -
Double-click tS3Get to open its Basic settings view.
-
Select the Use existing connection check
box to reuse the connection. -
In the Bucket field, enter the bucket
name. -
In the Key field, enter the name of the
file to be retrieved from the S3 server. -
In the File field, enter the local name
of the retrieved file.
Executing the Job
- Press Ctrl + S to save the Job.
-
Press F6 to run the Job.
-
Go to the S3 web console:
As shown above, the file has been put on to the S3 server.
-
Refresh the S3 Browser client:
This shows that the S3 Put action was performed successfully.
-
Go to the folder where the retrieved file is saved locally:
As shown above, the remote file is retrieved to the local disk, proof that
the S3 Get action was performed successfully.