intro
sdlc-aws-cdk-lib
AWS CDK library with extended constructs, Blue-Green/Canary deployment patterns, and context-aware environment management.
๐ Documentationโ
GITHUB_PAT Full Documentation โ
- ๐ Getting Started
- ๐ Quick Start Guide
- ๐ Installation
- ๐ฏ Context Strategy
- ๐ Blue-Green Deployments
- ๐ง Lambda Patterns
- ๐ API Reference
๐ Featuresโ
- Extended AWS CDK Constructs: Custom wrappers with automatic naming and tagging
- Blue-Green Lambda Deployments: Zero-downtime deployments with automatic rollback
- Context Strategy: Environment-aware configuration (dev, staging, prod, test, qa, preprod)
- Package Metadata Integration: Automatic resource tagging from package.json
- Canary Traffic Shifting: Gradual rollout with CodeDeploy integration
- Type-Safe: Full TypeScript support with strict mode enabled
โก Quick Startโ
# Install
npm install sdlc-aws-cdk-lib aws-cdk-lib constructs
# Use in your CDK app
import { App, Stack } from 'sdlc-aws-cdk-lib';
const app = new App();
const stack = new Stack(app, 'MyStack');
// Deploy
cdk deploy --context stage=dev
See the Quick Start Guide for a complete example.
๐ Prerequisitesโ
- Node.js >= 22.0.0
- npm >= 10.9.2
- AWS CLI configured with appropriate credentials
- AWS CDK v2.160.0 or later
๐ ๏ธ Developmentโ
# Clone and install
git clone https://github.com/akfdev-com/sdlc-aws-cdk-lib.git
cd sdlc-aws-cdk-lib
npm install
# Build
npm run build
# Run tests
npm test
# Lint
npm run lint
๐ฆ Project Structureโ
sdlc-aws-cdk-lib/
โโโ bin/ # CDK app entry point
โโโ lib/ # Example stacks
โ โโโ SimpleStack.ts # Blue-Green Lambda example
โ โโโ GithubOidcStack.ts # GitHub OIDC authentication
โ โโโ lambda/ # Construct definitions
โ โโโ BlueGreenLambda.ts
โโโ src/ # Core library code
โ โโโ contextStrategy/ # Context management
โ โโโ ContextStrategy.ts
โ โโโ PackageJsonDetails.ts