Core Concepts Overview
Understanding the fundamental concepts of the Nx CDK Plugin will help you make the most of its capabilities and build robust AWS infrastructure efficiently.
Key Concepts
🎯 Presets
Infrastructure templates that create complete, production-ready microservice architectures with a single command. Presets combine multiple AWS resources following best practices.
🏗️ Resource Bundles
Modular components that add specific AWS services to existing projects. Mix and match resources based on your needs.
🌍 Environment Management
Environment-aware configurations that ensure your infrastructure adapts to different deployment stages (dev, staging, production).
⚡ Generators
Code generators that scaffold infrastructure, Lambda functions, and configuration files based on templates.
🚀 Executors
Build and deployment tools that compile CDK applications and manage AWS deployments through Nx.
Architecture Philosophy
The plugin follows these architectural principles:
- Convention over Configuration - Sensible defaults with customization options
- Modular Design - Compose complex applications from simple building blocks
- Environment Awareness - Different configurations for different stages
- Type Safety - Full TypeScript support throughout
- Nx Integration - Leverages Nx caching and dependency management
How It All Works Together
- Generate infrastructure using presets or individual generators
- Configure environments with context files
- Build CDK applications using Nx executors
- Deploy to AWS with environment-specific settings
- Manage lifecycle through standardized commands