AWS CDK and jsii feedback
Work across AWS CDK and jsii that makes change clearer, examples checkable, and runtime contracts deliberate.

Support the developer's next decision at several points: previewing change, iterating, reading an example, and running the system.
A developer platform communicates through more than its APIs. A change preview tells someone what they are about to do. An example shows them how to proceed. Runtime behavior determines whether those expectations survive execution.
My contributions across AWS CDK and jsii work at several of those points: showing loop-based infrastructure changes in cdk diff, supporting QuickSight development hotswap through Cloud Control, checking documented package paths, and refining runtime cleanup and lookup behavior. The common thread is useful feedback with a clear contract.
Show the change in the language of the author.
CloudFormation's Fn::ForEach lets a template describe a family of resources through a loop. My diff contribution makes those loop additions, removals, collections, and property changes visible in the CDK change preview. The preview remains about the template's intent rather than pretending it has already evaluated every deploy-time value.
Feedback supports a deliberate next step.
- Describe the intended change
- Inspect the preview
- Choose the appropriate deployment path
A preview shows the intended change; it is not the completed deployment itself.
Reuse the shared path for development updates.
The QuickSight hotswap contribution follows another useful pattern: use the platform's shared infrastructure when it fits. It registers the supported QuickSight resource types with the existing Cloud Control handler instead of maintaining a separate set of service-specific update paths. Hotswap remains a development workflow, not a replacement for the full deployment contract.
Let an example make a checkable promise.
A package path in a documentation example is part of the interface a developer encounters. In CDK, I added a build check that compares package subpaths inside fenced examples with the package's actual exports. That covers plain strings in configuration as well as the paths a reader would normally recognize as imports.
The contribution's validation checked 803 example specifiers. More important than the count is the shape of the check: it can identify a new invalid example, and it treats finding no specifiers as a problem rather than a successful empty run. The documentation and the package now have an executable relationship to examine.
Improve the runtime without blurring its contract.
The jsii work includes cleaning up resolved promises, caching type information, replacing repeated member searches with map lookups, and compressing the runtime bundle while preserving names used in diagnostics. These are distinct changes, each with a specific behavior to preserve.
Cleanup, caching, and packaging each have a behavior to preserve. A faster lookup still has to respect inheritance; a smaller bundle still has to explain an error. Efficiency is useful when the developer can continue to understand the system.
What I take from it
Preview intended changes, keep development shortcuts distinct from deployment, and check examples against the package developers will actually use.
Code and further reading
About the author
- Principal AI Architect. I help teams govern, ship, and scale AI, security, cloud, and developer systems. Illustrated essays and selected work at https://mh0pe.github.io/
Comments
Join the discussionNo comments yet. Be the first to comment.




