---
title: "AWS CDK and jsii feedback"
description: "Cloud development gives feedback through previews, examples, and runtime behavior. My AWS CDK and jsii work makes those boundaries easier to inspect."
url: https://mh0pe.github.io/blog/cloud-runtime/
author: "Madison Hope Steiner"
published: 2026-10-08
modified: 2026-10-08
---

[← All writing](https://mh0pe.github.io/blog/)

# Developer feedback is part of the platform.

**Show the loop. Leave its size unknown.** The change preview can name an added CloudFormation loop even when its collection hasn’t resolved. It describes the template change, not a deployment or a resource count.

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

[AWS CDK: Fn::ForEach change previews](https://github.com/aws/aws-cdk-cli/pull/1063)

By [Madison Hope Steiner](https://mh0pe.github.io/about/)

AWS CDK and jsii Developer tools

**In this article**

Preview, iterate, learn, execute

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.

**Preview the intent, not an invented result.**

A readable diff describes template changes. Unresolved values stay unresolved; a preview is not a deployment.

**Diagram key**

**Left sheet in Preview: Template**
A loop is part of the intended change.

**Right sheet in Preview: Change preview**
Describe additions and changes in terms the author uses.

**Question marks on both sheets: Unresolved stays unknown**
An unknown collection is not replaced with an invented count.

- [AWS CDK: Fn::ForEach change previews](https://github.com/aws/aws-cdk-cli/pull/1063)

**Feedback supports a deliberate next step.**

1. Describe the intended change
2. Inspect the preview
3. 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](https://www.linkedin.com/feed/update/urn:li:activity:7503954288172253184/)?

## 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.

**Use the shared development path.**

QuickSight hotswap uses the shared Cloud Control handler for supported development updates, not the full deployment contract.

**Diagram key**

**Left card in Iterate: QuickSight**
The supported resource types being updated.

**Right card in Iterate: Cloud Control**
A shared handler replaces repeated resource-specific handling.

- [AWS CDK: QuickSight development hotswap](https://github.com/aws/aws-cdk-cli/pull/1457)

## 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.

**An example makes a checkable promise.**

A documented package path can be compared with the package's actual exports.

**Documented package path** ** Checked package export**

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.

**Diagram key**

**Left sheet in Learn: Example path**
The import shown in a documented example.

**Right sheet in Learn: Actual export**
The path the package makes available.

- [AWS CDK: documented package paths checked against exports](https://github.com/aws/aws-cdk/pull/38675)

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.

**Simplify inside. Preserve the contract.**

Cleanup, lookups and packaging can improve while the external contract and diagnostic names remain deliberate.

**Diagram key**

**Four inner boxes in Execute: Promises / types / members / bundle**
The jsii mechanisms improved by these changes.

**Unchanged outer frame in Execute: External contract**
Behavior and diagnostic names stay intact.

- [jsii: resolved-promise cleanup](https://github.com/aws/jsii/pull/5054)
- [jsii: type-resolution cache](https://github.com/aws/jsii/pull/5055)
- [jsii: member lookup](https://github.com/aws/jsii/pull/5056)
- [jsii: runtime bundle refinement](https://github.com/aws/jsii/pull/5057)

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](https://www.linkedin.com/feed/update/urn:li:activity:7498461774455791616/), and [a performance optimization earns trust when users do not have to learn new behavior](https://www.linkedin.com/feed/update/urn:li:activity:7500673919973191680/).

**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](https://github.com/aws/aws-cdk-cli/pull/1063)
- [AWS CDK: QuickSight development hotswap](https://github.com/aws/aws-cdk-cli/pull/1457)
- [AWS CDK: documented package paths checked against exports](https://github.com/aws/aws-cdk/pull/38675)
- [jsii: resolved-promise cleanup](https://github.com/aws/jsii/pull/5054)
- [jsii: type-resolution cache](https://github.com/aws/jsii/pull/5055)
- [jsii: member lookup](https://github.com/aws/jsii/pull/5056)
- [jsii: runtime bundle refinement](https://github.com/aws/jsii/pull/5057)

Covers work from March to August 2026 Posted October 8, 2026

Also on

- On DEV from Dec 7
- [Hashnode](https://mh0pe.hashnode.dev/cloud-runtime)
- In editorial review at HackerNoon
- On daily.dev from Dec 7

- [Cloud development](https://mh0pe.github.io/blog/?tag=Cloud%20development#topic-developer-tools)
- [Executable documentation](https://mh0pe.github.io/blog/?tag=Executable%20documentation#topic-developer-tools)
- [Runtime contracts](https://mh0pe.github.io/blog/?tag=Runtime%20contracts#topic-developer-tools)

[What changed for developers using AWS CDK and jsii](https://mh0pe.github.io/capabilities/#capability-aws-cloud-runtime)

## Read next.

AI workflows

### [Useful agent tools need clear boundaries.](https://mh0pe.github.io/blog/aws-labs-mcp/)

Documents, images, transports, and browser sessions in my AWS Labs MCP contributions.
