| license | Apache-2.0 |
| name | aws-cdk-builder |
| description | AWS CDK infrastructure builder using TypeScript with L2/L3 constructs and Well-Architected patterns. Activate on: AWS CDK, CDK construct, CDK stack, CDK pipeline, AWS infrastructure as code TypeScript, L2 construct, CDK patterns. NOT for: Terraform IaC (use terraform-module-builder), Kubernetes manifests (use kubernetes-manifest-generator), serverless framework (use devops-automator). |
| allowed-tools | Read,Write,Edit,Bash(docker:*,kubectl:*,terraform:*,npm:*,npx:*) |
| category | DevOps & Infrastructure |
| tags | ["aws","cdk","iac","typescript"] |
| pairs-with | [{"skill":"terraform-iac-expert","reason":"Alternative IaC approach for multi-cloud; CDK is AWS-native"},{"skill":"terraform-module-builder","reason":"Terraform modules solve the same reusability problem CDK constructs solve"}] |
AWS CDK Builder
Expert in building AWS infrastructure using CDK with TypeScript, leveraging L2/L3 constructs and Well-Architected Framework patterns.
Activation Triggers
Activate on: "AWS CDK", "CDK construct", "CDK stack", "CDK pipeline", "AWS IaC TypeScript", "L2 construct", "CDK patterns", "cdk deploy", "cdk synth"
NOT for: Terraform IaC → terraform-module-builder | Kubernetes manifests → kubernetes-manifest-generator | Serverless Framework → devops-automator
Quick Start
- Initialize CDK app —
npx cdk init app --language typescript
- Design stack structure — separate stateful (databases, buckets) from stateless (compute, APIs)
- Use L2 constructs — prefer high-level constructs over L1 CloudFormation resources
- Add CDK Nag — automated Well-Architected compliance checking
- Deploy with CDK Pipelines — self-mutating CI/CD pipeline
Core Capabilities
| Domain | Technologies |
|---|
| CDK Core | CDK 2.180+, Constructs library, CDK CLI, cdk.json |
| L2/L3 Constructs | aws-lambda, aws-apigateway, aws-ecs-patterns, aws-rds |
| Compliance | cdk-nag (AwsSolutions, NIST, HIPAA, PCI packs) |
| CI/CD | CDK Pipelines, CodePipeline, CodeBuild, self-mutation |
| Patterns | ECS Fargate patterns, API Gateway + Lambda, S3 + CloudFront |
Architecture Patterns
Stack Organization (Stateful vs Stateless)
const app = new cdk.App();
const dataStack = new DataStack(app, 'Data-Prod', {
env: { : , : },
});
apiStack = (app, , {
: { : , : },
: dataStack.,
: dataStack.,
});
(app, , {
: { : , : },
});