Serverless Lambda Scaffold
A personal VS Code extension that scaffolds a minimal Node.js AWS Lambda project with Serverless Framework (serverless.yml).
Features
- One command to generate a ready-to-deploy Lambda project
- Prompts for service name and AWS region
- Creates
serverless.yml, handler.js, package.json, and .gitignore
Usage
- Open a folder in VS Code (or Cursor).
- Open the Command Palette (
Cmd+Shift+P / Ctrl+Shift+P).
- Run Serverless: Create Node.js Lambda (serverless.yml).
- Enter a service name and AWS region.
- A new project folder is created in your workspace.
Generated structure
my-lambda-service/
├── serverless.yml
├── handler.js
├── package.json
└── .gitignore
Deploy (after generation)
cd my-lambda-service
npm install
npx serverless deploy
Configure AWS credentials before deploying (aws configure or environment variables).
Development
Prerequisites
- Node.js 18+
- VS Code or Cursor
Run locally
npm install
Open this folder in VS Code, press F5, and use the Extension Development Host window to test the command.
Package
npm run package
Install the generated .vsix from the Extensions view → ... → Install from VSIX.
Publish to the Marketplace
Create a publisher on the Visual Studio Marketplace.
Set your publisher ID in package.json:
"publisher": "your-publisher-id"
Create an Azure DevOps PAT with Marketplace → Manage scope.
Login and publish:
npx vsce login your-publisher-id
npm run publish
License
MIT
| |