Skip to content

aws-cdk@v2.1008.0

Choose a tag to compare

@github-actions github-actions released this 16 Apr 09:50
· 1020 commits to refs/heads/main since this release
25db152

2.1008.0 (2025-04-16)

⚠ BREAKING CHANGES

  • this change changes the return type of
    toolkit.synth(): it no longer returns an arbitrary Assembly Source (by
    interface), but a specific Assembly, by class, that can also be used as
    a source. The return type of ICloudAssemblySource.produce() has been
    changed to IReadableCloudAssembly. This will only affect consumers
    with custom implementations of that interface, the factory function APIs
    are unchanged.
  • toolkit-lib: The deprecated force option on DeployOptions has
    been removed. The removed option originally caused multiple different
    "force" actions. Each action now has a more targeted alternative. To
    force a deployment even if the CDK Toolkit has not detected any changes,
    use forceDeployment. To force re-publishing of previously published
    assets, use forceAssetPublishing. To force failing resource being
    orphaned during a rollback, use orphanFailedResourcesDuringRollback.
    To implement interactive confirmation of rollbacks during a deployment,
    react to the message request with code CDK_TOOLKIT_I5050 in your
    IoHost.
  • toolkit-lib: This change updates the default IoHost implementation
    used by Toolkit to a version that is strictly non-interactive, i.e.
    there is no expectation anymore that users will respond to command-line
    prompts. To restore previous behavior, you will can provide a custom
    IoHost implementation to your Toolkit instance. You may consider
    extending the new NonInteractiveIoHost class with desired interactive
    prompts.

Features

  • refactor (dry-run mode only) (#342) (24b23e4)
  • refactor: resources with the same physical ID are considered equivalent (#360) (6cde334)
  • toolkit-lib: add a return type for toolkit.diff() (#368) (25db152)
  • toolkit-lib: default to using a non interactive IoHost (#306) (e0f9a6f), closes #157 #289
  • toolkit: watch operation can be stopped (#308) (634f512)

Bug Fixes