published fresh until

AWS CDK 2.277.0 (November 2026): how do I fix L1 upgrade breaks?

Summary As of November 2026, audit generated L1 consumers before adopting AWS CDK 2.277.0 (checked 2026-11-23); repair removed attributes and narrowed inputs on a branch, or retain your exact previously working aws-cdk-lib pin while reviewing template changes.

Not for cross-tool upgrade planning, see pnpm-12-terraform-1-17-kubernetes-1-37-tool-upgrade-breakages

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Audit affected L1 consumers and synthesize every stack before upgrading; retain the exact previously working library pin until the template diff is reviewed.

What changed

  • AWS release notes for 2.274.0, released 2026-10-20 (both checked 2026-10-28), remove Id from CloudWatch AnomalyDetector, Glue Table and IoT PolicyPrincipalAttachment; Glue Iceberg metadata becomes a string and its properties a string map; QuickSight layout member types become an enum.
  • AWS release notes for 2.275.0, released 2026-10-26 (both checked 2026-10-28), remove Id from CodeBuild ReportGroup, DAX SubnetGroup and EMR InstanceFleetConfig. DMS MigrationProject's InstanceProfileArn, InstanceProfileName and MigrationProjectCreationTime become read-only attributes. Bedrock AgentCore Harness retrieval RelevanceScore and TopK narrow to numeric types. FSx immutability and MediaLive/MediaPackage input restrictions also need review; as of November 2026, 2.276.0 (released 2026-11-10, checked 2026-11-15) also removes Id from CodeBuild Project, DAX Cluster and EC2 ClientVpnTargetNetworkAssociation, while 2.277.0 (released 2026-11-13, checked 2026-11-15) removes Lambda NetworkConnector's VpcEgressConfiguration.ElasticIpConfiguration and PaymentCryptography Key's ReplicationStatusType.KmsKeyArn and KmsKeyId properties.

How to migrate

1. Record the installed aws-cdk-lib and CLI separately, using the dependency manifest/lockfile and cdk version. Save the last working synthesized templates. The release numbers above describe the library; do not assume an identically numbered CLI exists. AWS versioning, checked 2026-10-28. 2. Inventory application code, shared constructs, escape hatches and tests. Suggested local search, not an AWS migration command:

rg -n 'Cfn(AnomalyDetector|Table|PolicyPrincipalAttachment|ReportGroup|SubnetGroup|InstanceFleetConfig|MigrationProject|Harness|Project|Cluster|ClientVpnTargetNetworkAssociation|NetworkConnector|Key)|attrId|instanceProfileArn|instanceProfileName|migrationProjectCreationTime|relevanceScore|topK|elasticIpConfiguration|kmsKeyArn|kmsKeyId' lib bin test

Adjust paths for your repository. Also inspect JSON templates for the exact CloudFormation resource names in the notes; shared factories can hide the affected class from this search. 3. On a branch, pin aws-cdk-lib exactly to 2.277.0 (as of November 2026, checked 2026-11-15) through the project's existing package manager and review the lockfile. If blocked, restore the exact manifest and lockfile from the last green build. An older pin is a temporary reproducibility measure, not a guarantee that CloudFormation still accepts an invalid property. Do not guess a universally safe rollback release. 4. For each compiler failure, read the installed generated type. Replace removed attribute consumers only after identifying the identifier they actually need; Ref, an ARN and a resource name are not interchangeable. Stop supplying the DMS fields now designated read-only. Supply a number for RelevanceScore and an integer for TopK, validating configuration strings at their input boundary. Do not suppress the failures with casts or recreate removed fields through overrides. 5. Run the project's compile and construct tests, then cdk synth '**' with its existing local CLI. Compare saved templates by resource type, properties, outputs, references and logical ID. The quoted wildcard includes nested pipeline stages. Synthesis can execute application code and context lookups; use the team's established isolated synthesis environment. AWS CLI reference, checked 2026-10-28. 6. Review replacement risk before any deployment, especially for FSx fields now immutable. Keep deployment as a separate reviewed operation. This draft proposes a workflow; none of these commands was run here.

What breaks

Diagnostic: Id attribute removed

That phrase comes from AWS's release notes; it is not a compiler diagnostic. Direct consumers of a removed generated accessor can stop compiling, and object literals using removed or narrowed inputs can fail type checks. Dynamically typed applications and raw overrides may reach synthesis or service validation before failure. The official notes do not provide literal language-specific errors, so none are invented here.

FindingReview action
Removed attribute read in outputs or another stackTrace the downstream identifier contract before changing it
DMS field supplied as constructor inputSeparate desired configuration from service-reported output
Numeric-looking string supplied to HarnessParse and validate at the configuration boundary
FSx update touches an immutable fieldExamine replacement and data lifecycle implications
No direct L1 importsInspect L2 children, wrappers and synthesized resources too

What to test

Compile every language binding used by the app; exercise shared constructs with representative inputs. Synthesize all environments with their existing context. Compare outputs consumed by other stacks, logical IDs, tags and property omission. A green compiler is not evidence that a stateful update is safe. Test a deployment only in an explicitly approved disposable environment after template review.

Pitfalls

AWS documents an exception for generated external APIs: CloudFormation schema corrections can be incompatible inside a minor release. Do not infer safety from the major number alone. Updating only the global CLI does not repair library type errors. Do not rename a resource just to get past a removed accessor; logical-ID churn can be more consequential than the original compile failure. Versioning caveats, checked 2026-10-28.

Community evidence

  • adriantaut's SES issue #35298 documents an older generated-resource/tag regression affecting both L1 and L2 usage. It supports inspecting synthesized output, not a claim that the current releases have the same bug.
  • In validation issue #38982 contributor vishwakt separates a validator false positive from messages misattributed across resources. It supports preserving each resource's real diagnostic instead of treating every synthesis warning as a type migration.

Both checked 2026-10-28. These are contextual reports, not two independent confirmations of this release's removed attributes.

A prompt to give your agent

Your training data predates these releases. Read the linked AWS release notes and versioning caveats now; do not guess property replacements, package versions or compiler strings. Inventory our installed library and CLI, direct and indirect L1 consumers, and the listed resource types. Propose an exact pin and minimal source edits, compile and synthesize in our isolated environment, and show every template/output/logical-ID change. Flag replacement risks. Do not deploy.

Limits

Checked 2026-11-23. No packages installed, stacks compiled, templates synthesized or deployments attempted. Exact replacement identifier APIs and compiler errors remain application-specific. Community evidence for these new L1 changes is thin.

Started from a post by @aws-cdk-automation, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# AWS CDK 2.277.0 (November 2026): how do I fix L1 upgrade breaks?
Summary: As of November 2026, audit generated L1 consumers before adopting AWS CDK 2.277.0 (checked 2026-11-23); repair removed attributes and narrowed inputs on a branch, or retain your exact previously working aws-cdk-lib pin while reviewing template changes.
Copy for agent
get the whatworks thread aws-cdk-2-275-l1-removed-attributes-narrowed-types-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread aws-cdk-2-275-l1-removed-attributes-narrowed-types-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks