AWS Agents For Devsecops
AWS Core
Core Skills · AWS…
End User Computing Skills
Messaging And Streaming Skills
Migration And Modernization Skills
Networking And Content Delivery Skills
Quantum Computing Skills
Security And Identity Skills
Web And Mobile Development
130 skills · 758 min
Core Skills
Skill 27 of 130
Guides building full-stack applications with AWS Blocks — an Infrastructure-from-Code framework.
2 minutes · 478 words · 9 sections
Install
npx skills add aws/agent-toolkit-for-aws --skill aws-blocksnpx skills add aws/agent-toolkit-for-aws/plugin marketplace add aws/agent-toolkit-for-awsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Package naming: All packages are published under the
@aws-blocksscope (e.g.,@aws-blocks/core,@aws-blocks/blocks,@aws-blocks/bb-kv-store).
AWS Blocks is an Infrastructure-from-Code framework where Building Blocks bundle CDK, SDK, and local mocks into a single API. It provides 18+ Building Blocks covering storage, authentication, real-time communication, background jobs, file management, AI/search, email, and observability — all working locally without AWS credentials.
Key characteristics:
aws-blocks/ directory defines the entire backend.bb-data/)npm run sandbox and long-lived environments with npm run deploy using least-privilege credentialsnpx @aws-blocks/create-blocks-app my-app
cd my-appnpx @aws-blocks/create-blocks-app .This detects the existing project and adds an aws-blocks/ workspace alongside your code.
npx @aws-blocks/create-blocks-app .When the CLI detects amplify/backend.ts, it automatically integrates AWS Blocks with your Amplify backend.
npx @aws-blocks/create-blocks-app my-app --template demo
cd my-app| Template | Description |
|---|---|
default | Vite + lit-html starter app with basic authentication, data persistence, and realtime to help demonstrate basic app architecture and patterns (used when --template is omitted) |
bare | Vite + lit-html starter with a single “hello world” API method and a bare frontend |
react | React + Vite starter with a single API endpoint and typed React frontend |
backend | Backend-only — no frontend, just the AWS Blocks API with a single endpoint |
demo | Todo app with AuthBasic, KVStore, DistributedTable, Zod schemas, indexes, and auth-protected CRUD |
auth-cognito | Full AuthCognito passwordless email-OTP with roles, device management, and Authenticator UI |
nextjs | Next.js + React starter with AWS Blocks backend integration (SSR + Server Components) |
After scaffolding, refer to node_modules/@aws-blocks/blocks/README.md for the complete development workflow including:
When implementing a specific Building Block, read its package README for the detailed API reference (e.g., node_modules/@aws-blocks/bb-kv-store/README.md). These are the authoritative docs for your installed version.
await auth.requireAuth(context) in every method that shouldn’t be public — ApiNamespace methods are unauthenticated by defaultnew AppSetting(scope, id, { secret: true }) for API keys and credentials — never hardcode or use .env files* IAM policies — each Building Block already grants least-privilege scoped to its own resourcesblockPublicAccess on FileBucket — serve public files through CloudFront insteadCORS_ALLOWED_ORIGINS explicitly for production — avoid wildcardscrossDomain: true to auth constructors (enables SameSite=None; Secure; Partitioned)monitoring: { enabled: true, snsTopicArn: '...' } on Hosting for production alertsGuides building full-stack applications with AWS Blocks — an Infrastructure-from-Code framework. Applies when creating APIs, selecting Building Blocks (KVStore, DistributedTable, Database, AuthBasic, AuthCognito, Realtime, AsyncJob, FileBucket, etc.), running local development, or deploying AWS Blocks applications. Also covers AWS Blocks topics with validated, version-specific patterns that prevent common mistakes. Triggers when user mentions AWS Blocks; project has aws-blocks/ directory; code imports @aws-blocks packages.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
skills/core-skills/aws-blocks/SKILL.mdmain, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 19 distinct layouts observed: plugins/aws-agents-for-devsecops/skills/*/SKILL.md, plugins/aws-agents/skills/*/SKILL.md, plugins/aws-core/skills/*/SKILL.md, skills/core-skills/*/SKILL.md, skills/specialized-skills/analytics-skills/*/SKILL.md, skills/specialized-skills/database-skills/*/SKILL.md, skills/specialized-skills/ec2-skills/*/SKILL.md, skills/specialized-skills/end-user-computing-skills/*/SKILL.md, skills/specialized-skills/messaging-and-streaming-skills/*/SKILL.md, skills/specialized-skills/migration-and-modernization-skills/*/SKILL.md, skills/specialized-skills/networking-and-content-delivery-skills/*/SKILL.md, skills/specialized-skills/operations-skills/*/SKILL.md, skills/specialized-skills/quantum-computing-skills/*/SKILL.md, skills/specialized-skills/resilience-skills/*/SKILL.md.skills/specialized-skills/security-and-identity-skills/*/SKILL.mdskills/specialized-skills/serverless-skills/*/SKILL.mdskills/specialized-skills/storage-skills/*/SKILL.mdskills/specialized-skills/system-table-skills/*/SKILL.mdskills/specialized-skills/web-and-mobile-development/*/SKILL.mdh1 and no skipped levels:.claude-plugin/marketplace.json by Amazon Web Services, declaring 4 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./aws/agent-toolkit-for-aws.md, and each skill at its own .md URL.