---
title: "Discussion on \"Running agent-generated code in AWS Lambda functions vs a sandbox\" | Hashnode"
description: "Discussion on \"Running agent-generated code in AWS Lambda functions vs a sandbox\". If your app already runs on AWS, putting an agent's run_code tool in a Lambda function looks like the obvious move. Lambda runs on Firecracker, scales on its own, and you pay per invocation. For some"
url: "https://hashnode.com/posts/running-agent-generated-code-in-aws-lambda-functions-vs-a-sandbox/6b08b71d99849a64b4768dc2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Running agent-generated code in AWS Lambda functions vs a sandbox](https://sandscale.hashnode.dev/running-agent-generated-code-in-aws-lambda-functions-vs-a-sandbox?utm_source=hashnode&utm_medium=feed)

If your app already runs on AWS, putting an agent's run\_code tool in a Lambda function looks like the obvious move. Lambda runs on Firecracker, scales on its own, and you pay per invocation. For some

4d ago · 6 min read · sandscale.hashnode.dev  
Read the article

-   [#aws-lambda](https://hashnode.com/tag/aws-lambda)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#sandbox](https://hashnode.com/tag/sandbox)

## Written by

[Sandscale](https://hashnode.com/@sandscale)

@sandscale

  
[View profile](https://hashnode.com/@sandscale)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
