0.0.0 (2024-12-24)
⚠ BREAKING CHANGES
-
cdk-lib: The return type of
aws-cdk-lib.aws_ec2.SecurityGroup.determineRuleScope
was changed from a tuple ([SecurityGroupBase, string]
) to a struct with the same values, because tuple types are not supported over the jsii interoperability layer, butjsii@v1
was incorrectly allowing this to be represented as theJSON
primitive type. This made the API unusable in non-JS languages. The type of themetadata
property ofaws-cdk-lib.aws_s3_deployment.BucketDeploymentProps
was changed from an index-only struct to an inline map, becausejsii@v1
silently ignored the index signature (which is otherwise un-supported), resulting in an empty object in non-JS/TS languages. As a consequence, the values of that map can no longer beundefined
(asjsii
does not currently support nullable elements in collections). -
cdk-lib: migrate to [email protected] / [email protected] (#24425) (f36e12c)
Features
- allow all
sts
options for roles assumed by the cli (#31089) (3e38de4), closes /github.com/aws/aws-cdk/blob/v2.154.1/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml#L429 /github.com/aws/aws-cdk/blob/v2.154.1/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml#L275 /github.com/aws/aws-cdk/blob/v2.154.1/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml#L298 /github.com/aws/aws-cdk/blob/v2.154.1/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml#L321 /github.com/aws/aws-cdk/blob/v2.154.1/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml#L536 - aws-cdk-lib: reduce JavaScript load time, second attempt (#27362) (f2905c5), closes #27314 #27353
- aws-cdk-lib: reduce load time of JavaScript library (#27217) (112e7d0)
- bootstrap: prevent accidental bootstrap overwrites (#24302) (6ef24d6)
- cdk:
cdk diff --quiet
suppresses progress messages (#26652) (07d3f78), closes #26526 #26526 - cli:
cdk rollback
(#31407) (d6499d4), closes #30546 - cli: add ability to configure hotswap properties for ECS (#30511) (99a48d2), closes #29618
- cli: automatically roll back stacks if necessary (#31920) (5a298c3), closes #30546
- cli: cdk rollback (#31684) (7f927ed), closes #31407
- cli: exposed synth's quiet option in cdk.json (#24793) (0da019c), closes #24251
- cli: garbage collect ecr assets (under --unstable flag) (#31841) (9452114), closes #31611
- cli: garbage collect s3 assets (under
--unstable
flag) (#31611) (73066a1) - cli: notices on bootstrap version (#31555) (2c423a1)
- cli: option to ignore no stacks (#28387) (b94ad6e), closes #28371
- cli: support
Fn::ImportValue
intrinsic function for hotswap deployments (#27292) (ce6e2fa) - CLI: synth displays "AssertDescription: CDK bootstrap stack version 6 required" (#31092) (9a6c454), closes #17942
- cli: upgrade aws-sdk to sdkv3 (#31702) (f255ed9), closes #25870 #26292 #20956 #24744 #27265
- core: configure SNS topics to receive stack events on the Stack construct (#30551) (c6687df), closes #8581
- core: configure Stack SNS notification ARNs on the Stack construct (#31107) (3648e6c), closes #8581
- list stack dependencies (#28995) (97191ab)
- migrate: Add CDK Migrate
--from-scan
functionality (#28962) (62c0542) - support for IAM Identity Center in security diff (#30009) (4ec8b57), closes #29835
Bug Fixes
- apigatewayv2: does not work in non-aws partition (#25284) (53cae10)
- bootstrap: add
previous-parameters
option to bootstrap command (#25219) (ebed570), closes #23780 - cdk: allow bootstrap with policy names with a path (#26378) (3034da8), closes #26320
- cli-integ: add regression patch for cli integ fix (#29313) (4a195ba), closes #29305
- cli-integ: use
Python_3_12
instead ofPython_3_7
lambda runtime (#29305) (560fd0c) - cli-lib: deploy fails with "no such file or directory, open 'node_modules/@aws-cdk/integ-runner/lib/workers/db.json.gz'" (#28199) (a835105), closes #27813 #27983
- cli:
cdk diff
always falls back to template only diff (#32165) (0f20608) - cli:
cdk ls
returns stack id instead of stack display name (#29447) (8b668c2), closes #29420 - cli: add skip-tests.txt file for v2.130.0 (#29320) (b15bf74), closes #29313
- cli: asset uploads fail if Object Lock is enabled on access bucket (#31937) (5e848c3)
- cli: assume role calls are skipping the proxy (#32291) (4a09f43)
- cli: deployment errors are printed 3 times (#31389) (f978155)
- cli: ecs hotswap deployment waits correctly for success or failure (#28448) (b56279a)
- cli: externally managed stack notification arns are deleted on
deploy
(#32163) (9c9302c) - cli: hotswapping appsync functions fails when API does not return function on the first page (#31406) (1600370), closes /github.com/aws/aws-cdk/blob/4371c93478594c50584642c4aae576f15ae6bfc2/packages/aws-cdk/lib/api/evaluate-cloudformation-template.ts#L23-L36
- cli: notices don't work behind a proxy (#32590) (18921d4)
- cli: template created during import should be written to assets folder (#29830) (d6d9e21), closes #22928 #22530
- core:
cdk diff
on large templates fails when passing intoolkitStackName
andqualifier
(#31636) (93cc47a), closes #29179 - core: file asset publishing role not used in
cdk diff
to upload large templates (#31597) (c9cc174), closes #29936 /github.com/aws/aws-cdk/blob/main/packages/aws-cdk/lib/api/bootstrap/bootstrap-template.yaml#L275 /github.com/aws/aws-cdk/blob/f978155c40956440b80ca31695242d81f2f3af3a/packages/aws-cdk/lib/api/deployments.ts#L605 - diff: properties from ChangeSet diff were ignored (#30093) (061e486), closes #29731
- lambda: update default runtimes and tests to node 16 everywhere (#26921) (b824a2c)
- lambda: update default runtimes and tests to node 18 (#27066) (100bf83)