I have a task to send email with multiple attachments. S3 bucket will receive 2 files in same time approximately.
By using S3 bucket Put event, I am able to send email with single attachment by using lambda + SES.
Now the task is like,
I am getting 2 files in S3 like "XXXYYYZZZ" and "XXXYYYZZZ.20190712111820".
Prefix is same for both files and second file has name with its timestamp (20190712111820)
Here i need to send single email with above 2 files as attachment.
How to achieve it? I can understand Put Event will work on every new file gets created in S3.