Choice for scheduled task in AWS
CloudFormation is service that allows you to create your infrastructure from code to automate your deployments.

You can set up a rule to run an AWS Lambda function on a schedule by using CloudWatch event. 
https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html