About EasyMorph Tutorials & Examples Web-help

Download Selected Files from AWS S3

Hi,
HAving a bit of issues downloading files from an S3.

I have created this flow that lists all files from S3 folder, then I make some formulas to only leave the path for the most recent ones. but then in the S3 commands, I can only select “Download File” and choose or static path (text) or via parameter. But how can I define in the parameter the file to download? It has always different date and suffix code. Thank you

image

image

Hello JoMar,

In this case, you have to use two modules: in one you list the files that you want to obtain from S3 and after you would have an “Iterate” Action that runs the second module as many times as files you have, sending the file name as a parameter. In this second module, you will download the file, using the file name as a parameter in the “File Path” of the “Amazon command” action.

Are you familiar with iterations? Here is more info: EasyMorph | Iterations

Regards,

Roberto

2 Likes

Hi @roberto,
Thanks a lot, I totally forgot about the iterations :smiley: . Also the path was confusing me some much until I remembered we can build “relative paths” and not just “local paths”. Thank you very much, your tips lead to me final solution which works perfect with AWS S3.

1 Like
To learn more about EasyMorph visit easymorph.com.