I have been using AWS Lambda to execute some R code by packaging the dependencies (CRAN Packages) and deploying it along with AWS Lambda. This helps me parrallelise running a small chunk of R code over huge set of data compared to running it on an instance. I have referred to this article I have been using AWS Lambda to execute some R