I am a bit new to AWS / Lambda from the technical side so I have a scenario adn I wanted your help.
I have a file that drops daily, I only care about the file on the last day of the month. They all drop to the same bucket the file drops at 8 EST.
I then need to rename the file from the last day of the month to a static name, and copying it to a bucket lets say the file is called bill. I would want the previous file there called bill_september if we are in october.
So my thought is to have a cron job kick off a Lambda function every day at noon to move a file except for the last day of the month. the first day of the month at 8 AM I will have it kick off a lambda job at 5 AM to copy to new bucket.
So the questions are
- Does this make sense?
- Can I have lambda rename existing file to file+month?
I am always open to a better solution so please tell me if i am totally turned around