# Local Lambda Development

{% hint style="success" %}
As a developer, I want to be able to develop, run and debug Lambda functions on macOS so that I can deliver code faster.
{% endhint %}

## Overview

In this document, we will use AWS SAM for local Lambda development using TypeScript. Our choice of IDE will be Visual Studio Code.

You can either follow scripted method or manual steps to understand what is happening.

## High level folder structure

Eventually, we will have this folder structure;

```bash
- project-one
  - .git
  - .venv
  - .vscode
  - function-one
    - dist
    - node_modules
    - package-lock.json
    - package.json
    - src
      - event.json
      - index.ts
    - template.yaml
    - tsconfig.json
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.awsmagic.com/develop/lambda/local.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
