Loading...
Loading...
Guides building or extending apps with AWS CDK Blocks (formerly AWS Blocks), an Infrastructure-from-Code framework on CDK. Each Block packages an application capability with its infrastructure, the app code that connects to it, and a local implementation, deployed into the developer's own AWS account. Triggers when the user mentions CDK Blocks, AWS Blocks, or the aws-cdk-blocks, @aws-cdk-blocks or @aws-blocks packages, or adding capabilities such as agents, sign-in, a database, background jobs or file uploads to an app using CDK. Does not apply to requests that name neither Blocks nor CDK. Covers starter templates, composing Blocks into app code (KVStore, Agents, Email, Database, Auth, Realtime, AsyncJob, FileBucket, etc.), running locally, deploying to AWS, Swift, Kotlin and Dart clients, and custom Blocks.
npx skill4agent add aws/agent-toolkit-for-aws aws-cdk-blockscdk-blocks/AGENTS.mdreferences/*.mdretrieve_skillretrieve_skillfilefile="references/existing-project.md"file_read.kiro/skills/aws-cdk-blocks/~/.claude/skills/aws-cdk-blocks/retrieve_skill| The request or the project | Go to |
|---|---|
| A deploy to AWS | references/deploying.md |
| A production launch or a security review | references/security.md |
| An iOS, Android, desktop or Flutter client for the backend | references/native-clients.md |
| An AWS service that no Block covers, or a Block a team wants to own | references/custom-block.md |
The project has a | Work in an existing app. Never scaffold again. |
The project is an AWS CDK app with its own stacks ( | references/existing-cdk-app.md |
The project has a | references/existing-project.md |
| An empty directory, or a request for a new app | Create an app |
aws-blocks/@aws-blocks/*Databasenextjs| The user wants | |
|---|---|
Their own features on a web frontend. The smallest app: Vite and one | |
| A React frontend: a todo app with sign-in, a data store and realtime | |
| A Next.js App Router app whose Server and Client Components call the backend | |
| A backend with no frontend and one API method | |
| A backend for mobile, CLI or third-party clients: a public health check and sign-in-gated CRUD | |
| A PostgreSQL backend with migrations, foreign keys and transactions | |
| A tour of sign-in: email sign-up with a code, groups, a profile | |
| OpenID Connect sign-in, with a stub identity provider for local runs | |
| An AI agent with a tool, and a canned model for local runs | |
| Scheduled jobs, no frontend | |
| Logs, metrics, traces and a dashboard, no frontend | |
| A larger sample: sign-in and a priority-sorted todo list | |
| No preference: Vite with sign-in, a data store and realtime | |
npx --yes @aws-cdk-blocks/create-blocks-app --helpnpx --yes @aws-cdk-blocks/create-blocks-app <directory> --template <template>..gitInstalling dependencies...✓ AWS CDK Blocks app created!Error: Target directory is not empty and no package.json found.npm create @aws-cdk-blocks/blocks-app@latest <directory>npm create---- --template <template>AGENTS.mdpackage.jsoncdk-blocks/index.tstest/e2e.test.tsnpm run test:e2enpm run buildAGENTS.mdnpm run -s docs guide -- --output text--npm run -s docs -- --output text # every Block, one line each
npm run -s docs KVStore Auth -- --output text # the docs of one or more Blocks
npm run -s docs KVStore -- --section local --output text # one topic of a Block's docs
npm run -s docs:api KVStore -- --output text # exact signatures
npm run -s docs:search "partition key" -- --output text # search--output textnpm run helpnpm run help <task>blocks:<name>scriptspackage.jsoncdk bootstrapSecret.env*Logger| Message or symptom | Do |
|---|---|
| Use a name from |
The scaffolder prints | In an existing project, pass |
| Run the task from the folder that holds |
| references/deploying.md |