AWS announces AWS Blocks, an open-source framework for composing application backends on AWS (Preview) - AWS

Open original

AWS Blocks is a public preview TypeScript framework that gives you a local backend environment with Postgres, authentication, and real-time messaging—no AWS account needed. When you’re ready to deploy, the same code runs on AWS services unchanged, and you can drop into AWS CDK for custom resource setup.

  • AWS Blocks lets you develop full backends (Postgres, auth, real-time messaging) locally with no AWS account, then deploy the same code unchanged to AWS services like API Gateway, Lambda, and RDS.
  • It's a TypeScript framework built by AWS's developer tools labs team (creators of CDK constructs), open-sourced on GitHub, currently in public preview.
  • The CLI scaffolds a project with sample endpoints, migrations, and tests; "blocks dev" runs it locally and "blocks deploy" generates CDK/CloudFormation behind the scenes.
  • Power users can drop into AWS CDK to customize VPC settings, IAM roles, or swap in DynamoDB, rather than being locked into the defaults.

AWS just opened public preview for AWS Blocks, a TypeScript framework that lets you build full backends without learning CloudFormation or Terraform. You get a local dev environment that spins up Postgres, user authentication, and real-time messaging. No AWS account is required during development. Push a button and the exact same code deploys to managed AWS services—API Gateway, Lambda, RDS—without edits. Under the hood, AWS Blocks uses a local emulator that mirrors production services. You can start with simple defaults: an Express-style API, JWT-based auth, WebSocket channels. As your needs grow, you drop into AWS CDK constructs to customize VPC settings, fine-tune IAM roles or swap in DynamoDB. The team published everything under an open-source license on GitHub, so you can inspect or contribute to feature requests and bug fixes. Setup takes minutes. A CLI wizard asks a few questions, then scaffolds your project with sample endpoints, database migrations and unit tests ready. You hit “blocks dev” to launch the stack locally. To deploy, you run “blocks deploy” and Blocks generates CDK code behind the scenes and pushes it via CloudFormation. If you know AWS CDK, you can peek at or override generated code at any stage. The project page links to detailed docs, plus code samples and API references. It’s built by the AWS developer tools labs team, the same group behind CDK constructs like aws-cdk-lib. On GitHub, issues already cover requests for GraphQL support, improved local logging and expanded runtimes beyond Node.js. If you need a fast path from prototype to production on AWS, Blocks cuts out manual infrastructure work but lets you own it when you’re ready.

Ask about this article