Lambda function to copy file one s3 to another while uploading

How to copy a file with csv in to another bucket

I have 3 buckets in AWS a)test b)testjson c)testcsv

I have upload data.json and data.csv to test bucket

After Uploading the file below things are happend

  1. data.json file is copied to testjson bucket

  2. data.csv file is copied to testcsv bucket


"emp_id": "3",
"Name" : "Madk"
"Company": "FB"



In this lambda handler only I need to copy .json into another bucket and .csv into another bucket

Go to Source
Author: Nons