You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CDKO eliminates the pain of deploying AWS CDK infrastructure across multiple accounts and regions. Deploy once, everywhere - with full CDK compatibility and intelligent stack mapping.
3
+
CDKO is a lightweight orchestrator that eliminates the pain of deploying AWS CDK stacks across multiple accounts and regions. Deploy once, everywhere - with full CDK compatibility and intelligent stack mapping.
4
4
5
-
## Features
5
+
## The Problem
6
6
7
-
-**Multi-account & multi-region deployment** - Deploy across account-region matrices in parallel or sequentially
8
-
-**Smart stack detection** - Automatically discovers and maps CDK stack construct IDs to accounts/regions
9
-
-**Profile pattern matching** - Support for wildcards (`dev-*`) and comma-separated lists (`dev,staging,prod`)
10
-
-**Cloud assembly caching** - Synthesizes once per profile, deploys many times for optimal performance
11
-
-**Flexible stack targeting** - Deploy specific stacks using pattern matching or wildcards
12
-
-**Multiple deployment modes** - Support for diff, changeset, and execute operations
13
-
-**Safe defaults** - Creates changesets for review before execution
7
+
If you've ever tried deploying CDK stacks across multiple AWS accounts and regions, you know the pain - running `cdk deploy` over and over, changing profiles and regions manually. You end up writing fragile shell scripts that loop through environments, or worse, doing it all by hand.
8
+
9
+
CDKO solves this with a simple command:
10
+
11
+
```bash
12
+
# Deploy to 6 locations (2 accounts × 3 regions) in parallel
- Testing infrastructure changes across environments
206
+
- Managing resources that don't fit well in CI/CD pipelines
207
+
208
+
For application deployments and automated workflows, use your CI/CD pipeline. CDKO and CI/CD complement each other - you can even call CDKO from within your pipeline for infrastructure updates.
209
+
210
+
## Comparison to Similar Tools
211
+
212
+
If you're familiar with Terraform, CDKO is similar to Terragrunt - it's an orchestration layer that makes it practical to deploy infrastructure at scale across complex multi-account, multi-region environments. Just as Terragrunt wraps Terraform to solve the multi-environment deployment problem, CDKO wraps CDK to provide the same capability.
111
213
112
214
## Troubleshooting
113
215
114
-
-**AWS Authentication**: If credentials expire, run `aws sso login --profile <profile>`
115
-
-**Multi-Account Issues**: Ensure all profiles have valid credentials and required permissions
116
-
-**Profile Patterns**: Use quotes around patterns: `cdko -p "dev-*"` not `cdko -p dev-*`
117
-
-**Graceful Shutdown**: Ctrl+C cancels all pending operations cleanly
118
-
-**Clear Errors**: CDK errors are parsed and displayed with context
216
+
### AWS Authentication
217
+
218
+
If credentials expire during deployment:
219
+
220
+
```bash
221
+
aws sso login --profile dev
222
+
aws sso login --profile prod
223
+
```
224
+
225
+
### Profile Patterns
226
+
227
+
Always quote patterns to prevent shell expansion:
228
+
229
+
```bash
230
+
cdko -p "dev-*"# Correct
231
+
cdko -p dev-*# Shell will expand this
232
+
```
233
+
234
+
### Debug Mode
235
+
236
+
See detailed execution information:
237
+
238
+
```bash
239
+
DEBUG=1 cdko -p dev -s MyStack -v
240
+
```
119
241
120
242
## Development
121
243
@@ -131,38 +253,11 @@ npm run lint
131
253
132
254
# Run tests
133
255
npm test
134
-
135
-
# Test in any CDK project
136
-
cdko --help
137
256
```
138
257
139
258
## Testing
140
259
141
-
CDKO includes comprehensive integration tests that verify core functionality against real CDK stacks.
142
-
143
-
### Test Structure
144
-
145
-
The `test/` directory contains a complete CDK project used as a test fixture:
0 commit comments