I have a Perl script and want to run it as a web service so it can be called using a HTTP endpoint. The Perl script uses GNU Diffutils so I'm wondering the best way to accomplish this. My initial thought is to take an IaaS approach:
- Create a Virtual Machine in the cloud (Azure, AWS, DO) running Debian GNU/Linux
- Install & configure a web server (Apache)
- Install GNU Diffutils
- Install Python CGI that will exchange information between the web server and Perl script
What does StackExchange think of these steps? Is there a PaaS or FaaS (AWS Lambda) approach to this where infrastructure maintenance can be reduced?