Developer feedback is part of the platform.
Work across AWS CDK and jsii that makes change clearer, examples checkable, and runtime contracts deliberate.
AWS CDK: Fn::ForEach change previews
AWS CDK and jsii Developer tools
At a glance
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.
Four contribution areas stay in place. Preview, in the upper left, shows a template and a readable change preview without replacing unknowns.
A readable diff describes template changes. Unresolved values stay unresolved; a preview is not a deployment.
A template specimen becomes a readable change preview. A question mark preserves an unresolved collection.
Diagram key
- Left sheet in PreviewTemplate
- A loop is part of the intended change.
- Right sheet in PreviewChange preview
- Describe additions and changes in terms the author uses.
- Question marks on both sheetsUnresolved stays unknown
- An unknown collection is not replaced with an invented count.
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.
I asked the broader question on LinkedIn: how should infrastructure review tools explain a deliberately expressive template construct, on LinkedIn, opens in a new tab?
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.
Iterate, in the upper right, connects supported QuickSight resources to a shared Cloud Control handler. This is a development hotswap path, not a deployment.
QuickSight hotswap uses the shared Cloud Control handler for supported development updates, not the full deployment contract.
The Iterate window shows a QuickSight development change inside a shared handler boundary. It is not marked as a deployed result.
Diagram key
- Left card in IterateQuickSight
- The supported resource types being updated.
- Right card in IterateCloud Control
- A shared handler replaces repeated resource-specific handling.
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.
Learn, in the lower left, brings the example path beside the actual export. The generic package / feature labels illustrate the comparison; the linked work contains the real paths.
A documented package path can be compared with the package's actual exports.
The corrected Jest configuration names aws-cdk-lib/testhelpers/jest-autoclean. A separate preview can still leave a CloudFormation collection unresolved. Neither check is a deployment.
The Learn window aligns an illustrative example path with an exported path. Generic package / feature labels show the comparison; the linked work contains the actual paths.
Diagram key
- Left sheet in LearnExample path
- The import shown in a documented example.
- Right sheet in LearnActual export
- The path the package makes available.
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.
Execute, in the lower right, settles four internal mechanisms inside an unchanged external-contract frame.
Cleanup, lookups and packaging can improve while the external contract and diagnostic names remain deliberate.
The Execute window opens its runtime internals inside the same external contract frame.
Diagram key
- Four inner boxes in ExecutePromises / types / members / bundle
- The jsii mechanisms improved by these changes.
- Unchanged outer frame in ExecuteExternal contract
- Behavior and diagnostic names stay intact.
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.
The jsii fixes prompted two short notes: some fixes are small in code and large in the ownership rule they clarify, on LinkedIn, opens in a new tab, and a performance optimization earns trust when users do not have to learn new behavior, on LinkedIn, opens in a new tab.
For a closer technical look
- The diff formatter preserves dynamic collections as dynamic, rather than inventing a resource count.
- The documentation check is scoped to fenced code examples so repository paths and type names are not mistaken for package imports.
- The linked runtime changes cover separate mechanisms: promise lifetime, type resolution, member lookup, and bundle packaging.
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
- AWS CDK: Fn::ForEach change previews , opens in a new tab
- AWS CDK: QuickSight development hotswap , opens in a new tab
- AWS CDK: documented package paths checked against exports , opens in a new tab
- jsii: resolved-promise cleanup , opens in a new tab
- jsii: type-resolution cache , opens in a new tab
- jsii: member lookup , opens in a new tab
- jsii: runtime bundle refinement , opens in a new tab
Covers work from March to August 2026Posted