Double-click the cAWSConnection component to display its
Basic settings view in the Component tab.
- In the Access Key and Secret Key fields, enter the authentication credentials of your AWS account. For how to get your Access Key and Access Secret, see Access keys (access key ID and secret access key).
Double-click the cFile component to open its Basic settings view in the Component tab.
In the Path field, browse to or enter the input file
In the fileName field, enter the name of file to be uploaded to the S3 service.In this scenario, a TXT file with the name talend that contains a simple string Hello World! is used.
Double-click the cAWSS3 component to open its Basic settings view in the Component tab.
In the Connection list, select the cAWSConnection component that you have just configured to
connect to Amazon's S3 service.
In the Bucket Name field, enter the name of the bucket to upload the file,
"talend-s3-demo"in this use case.Under the Message Headers table, click [+] to add two rows in the table. Set the header CamelAwsS3Key with the value "talend.txt" as the name of the S3 object, and the header CamelAwsS3ContentLength with the value 5 to define the length of the object.
- Press Ctrl+S to save your Route.