2

Initially a csv file is uploaded to S3 bucket and we often append that file by scripting when new row is added to that csv file. what we want is we want the script to run only when the csv file is modified, is there any watchers which can notify the script to run when the csv file is changed?

Daniel
  • 35
  • 1
  • 6

1 Answers1

3

There is S3 event notification for that, you would be interested in the s3:ObjectCreated event

https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html

You should also take a look at the s3 documentation and note the difference between S3 and a File system. An "update" or "append" operation on s3 is actually replacing the whole object, just for your information

qkhanhpro
  • 4,371
  • 2
  • 33
  • 45