I have written a Lambda function which gets invoked automatically when a file comes into my S3 bucket. I perform certain validations on this file, modify the particular and put the file at the same location. Due to this "put", my lambda is called again and the process goes on till my lambda execution times out. Is there any way to trigger this lambda only once?
- I found an approach where I can store the file name in DynamoDB and can apply a check in lambda function, but can there be any other approach where DynamoDB's use can be avoided?