How to configure tS3Put to load a list of files to S3?

Hi! I was able to upload 1 specific file into Amazon S3 using tS3Put, but now i want to upload the content of a file directory in my local machine into Amazon S3, I want to know how to configure the task with file names that can vary in every execution.
3 REPLIES
Moderator

Re: How to configure tS3Put to load a list of files to S3?

Hi,
Have you tried to use tfilelist to fetch your files in a folder and then put them into S3 server by using ts3Put component?
The workflow should be:tfilelist(retrieves a set of files)-->iterate-->tS3put
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

Re: How to configure tS3Put to load a list of files to S3?

Thanks Sabrina! this worked, i configured tS3Put as follows:
Bucket: context.strBucketNm
Key: ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
File: context.strSourceFolder + "/" +((String)globalMap.get("tFileList_1_CURRENT_FILE"))
And when running i get the following message:
connecting to socket on port 3386
connected
Connection pool shut down
Connection pool shut down

disconnected
Although all files are uploaded, why could i be receiving this Connection pool shut down?
Thanks!!
Moderator

Re: How to configure tS3Put to load a list of files to S3?

Hi,
Have you tried to check out option "Die on error" on tS3Put component to see if there is any more error information printed on console?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.