In this video, we use an open source project to create an API that runs bashscripts. For this setup, we only need a service like Cloud Run (or a similar Docker environment like Kubernetes), a Dockerfile, a simple YAML configuration, and our bash/shell script. We use HTTP request properties as bash script arguments, and can layer on security measures like Bearer tokens for authorization.
Demonstrated Code: https://github.com/nodematiclabs/bash-webhook-api
Open Source Project: https://github.com/adnanh/webhook