Quesma, a Slackbot for Grafana, needed to safely execute untrusted AI-generated R code in production. After initially trying WebAssembly in browsers, which suffered from large bundle sizes (92MB), missing dependencies, and complex data flows, they migrated to AWS Lambda with Docker containers running in an isolated VPC. The
Table of contents
The Initial Approach: WebAssembly in the BrowserLambda and Docker in an Isolated VPCKey Takeaways: Real-World AWS InsightsWhat We Learned About Building Secure Sandboxes on AWSConclusionSort: