1) Create a Lambda function
2) Trigger it using CloudWatch Events. You can set up cron like rules and AWS will trigger them for you.