Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Tried Nx Plugin for AWS, Here’s Why I’m Sold

Description and use

Nx Plugin for AWS simplifies building and wiring AWS services in a monorepo by generating code, infrastructure, and type‑safe connections between components.

Problem

Teams struggle to wire together AWS services (API, frontend, auth, IaC) in a monorepo, leading to repetitive boilerplate and inconsistent setups.

Outcome

Using Nx Plugin for AWS reduced boilerplate, ensured type‑safe wiring between services, and leveraged Nx’s caching for fast CI. The monorepo contains all code and IaC, making deployment straightforward.

Workflow

  • Create Nx workspace with pnpm create @aws/nx-workspace my-project
  • Generate API: pnpm nx g @aws/nx-plugin:ts#api --framework=trpc
  • Generate AI agent: pnpm nx g @aws/nx-plugin:py#agent
  • Generate React website: pnpm nx g @aws/nx-plugin:ts#website
  • Add Cognito auth: pnpm nx g @aws/nx-plugin:ts#website#auth
  • Connect website to API: pnpm nx g @aws/nx-plugin:connection
  • Connect agent to MCP server: pnpm nx g @aws/nx-plugin:connection
  • Run local dev: pnpm nx serve
  • Deploy with CDK: pnpm nx deploy

Evidence

Nx Plugin for AWS tackles that problem with code generators built on top of Nx.

Source

Generators produce both application code and the accompanying infrastructure (CDK or Terraform).

Source

The connection generator is the real workhorse.

Source

  • Record date: 2026-09-07T14:08:05.597Z