Guidance manipulating files in S3 using Script (Python) snap

I would like to read a file from a S3 bucket, update the file, then write it back to S3. I would like to use the account in SnapLogic I configured for S3 use. Does anyone have an example of any of this they could share?

File Reader -> Stuff -> File Writer ?

Basically, yes. I would like to read a file from s3, manipulate it in some way, then write it back to s3.

Hi ,

I usually do it in mapper and setting up the input as binary

I tried achieving it with a single mapper but as soon as I set the output as binary also the $[‘content’] object becomes missing :slight_smile:

manipulate_binary_content_2020_06_07.slp (6.3 KB)