You can easily do this with AWS Lambda and the boto3 library. You get logging, metrics and alerting if you want too. AWS has a generous free tier.
For python devs, this is a great framework to easily create and deploy them - https://github.com/aws/chalice.