README.md

September 7, 2026 · View on GitHub

Nx Plugin for AWS

Build full-stack AWS apps in minutes

Apache 2.0 License Release badge Commit activity

Documentation Site


@aws/nx-plugin is a collection of code generators that scaffold full-stack AWS applications inside an Nx monorepo. Every generator produces best-practice application code and the infrastructure to deploy it — type-safe, locally runnable, and deployable from the start, getting you closer to production.

Scaffolding, running and deploying a full-stack AWS application with the Nx Plugin for AWS

Quick Start

Build with AI

1. Create a workspace

pnpm create @aws/nx-workspace my-project
cd my-project

2. Open your AI assistant in the created workspace and prompt it

"Use the Nx Plugin for AWS to build a full-stack application consisting of a React website with shadcn and Cognito authentication, connected to a TypeScript Strands agent via the AG-UI protocol, and infrastructure to deploy it."

Your AI assistant will use the Nx Plugin for AWS MCP server, which is preconfigured in every workspace you create with the command above, to scaffold, connect, and configure everything. See the Building with AI guide for more details.

Build with the CLI

Create a workspace and start adding components — zero configuration required:

# Create a new workspace
pnpm create @aws/nx-workspace my-project
cd my-project

# Add a tRPC API
pnpm nx g @aws/nx-plugin:ts#api --framework=trpc

# Add a Strands AI agent (Python)
pnpm nx g @aws/nx-plugin:py#agent

# Add a React website
pnpm nx g @aws/nx-plugin:ts#website --framework=react

# Add authentication to your website
pnpm nx g @aws/nx-plugin:ts#website#auth

# Connect your website to your API and agent
pnpm nx g @aws/nx-plugin:connection

# Add CDK infrastructure to deploy it all (or choose Terraform)
pnpm nx g @aws/nx-plugin:ts#infra

See the full Quick Start guide and Dungeon Adventure tutorial for a deeper walkthrough.

Available Generators

GeneratorDescription
ts#projectTypeScript library
ts#apiTypeScript API (tRPC or Smithy) with API Gateway + Lambda + Powertools
ts#rdbRelational databases with Aurora RDS
ts#websiteReact app (Vite)
ts#website#authAdd Cognito auth to a website
ts#infraAWS CDK infrastructure project
ts#lambda-functionTypeScript Lambda with type-safe event sources
ts#mcp-serverMCP server (TypeScript)
ts#agentStrands Agent (TypeScript)
ts#nx-generatorNx generator scaffold
smithy#projectSmithy model project — a service model, or a shape library shared between Smithy projects
py#projectPython project (uv)
py#apiPython API (FastAPI) with API Gateway + Lambda + Powertools
py#lambda-functionPython Lambda with type-safe event sources
py#mcp-serverMCP server (Python)
py#agentStrands Agent (Python)
agentcore-harnessAgentCore Harness agent loop (experimental)
connectionConnect projects together (e.g. frontend to API)
terraform#projectTerraform project
licenseManage LICENSE files and source headers

Community

Join us on Slack in the #nx-plugin-for-aws channel to ask questions, share feedback, and connect with other users and contributors.

Contributing

Read our Contributing Guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes.

Code of Conduct

This project has adopted a Code of Conduct that we expect project participants to adhere to. Please read the Code of Conduct so that you can understand what actions will and will not be tolerated.

License

@aws/nx-plugin is Apache 2.0 licensed.