Releases: aws/aws-cdk
Release list
v2.266.0
Features
- adding controlPlaneScalingConfig to Cluster (#36863) (94e5c1a)
- update L1 CloudFormation resource definitions (#38578) (ccd2633)
Bug Fixes
- ec2: add DependsOn VPCGatewayAttachment to IPv6 default route (#37893) (ab272bc), closes #37853
- sns-subscriptions: use regionalized service principal for opt-in region SQS subscriptions (#38339) (67a7eb1), closes #32526
Alpha modules (2.266.0-alpha.0)
⚠ BREAKING CHANGES
- glue-alpha:
DataQualityRulesetProps.rulesetDqdl: stringis replaced by
dqdl: Dqdl. Build it withDqdl.fromString('Rules = [ ... ]'). - glue-alpha:
s3Encryption,cloudWatchEncryption, andjobBookmarksEncryptionare no longer object literals. UseS3Encryption.s3Managed()/S3Encryption.kms(key?),CloudWatchEncryption.kms(key?), andJobBookmarksEncryption.clientSideKms(key?). TheCloudWatchEncryptionModeandJobBookmarksEncryptionModeenums are removed (their mode is now implicit);S3EncryptionModeis retained. - glue-alpha: this is a corrective breaking change. Apps that leaned on the bug, and did things like
InputFormat x = OutputFormat.AVRO;will get a compilation error in other jsii languages. The intended usage, on the other hand, was broken before and works now. - glue-alpha:
workerTypeandnumberOfWorkersare no longer top-level job props. For Spark jobs, pass them together viaworkerConfiguration: { workerType, numberOfWorkers }.PythonShellJobno longer accepts them (it is sized bymaxCapacity).RayJobno longer acceptsworkerType(it is fixed toZ.2X). - glue-alpha:
SparkJobProps.enableMetricsremoved, which will cause a compilation error for any app using it. But there is no behavior change, since this is a dead prop. - glue-alpha: a differing/tokenized
has_encrypted_datasupplied viaparametersnow throws.
Features
- glue-alpha: add warning for maxRetries when job run queuing is enabled (#38575) (09ae11e)
- glue-alpha: model SecurityConfiguration encryption as factory subtypes (#38586) (e37e7a6)
- glue-alpha: new
hasEncryptedDataproperty (#38511) (c977e36) - glue-alpha: pair workerType and numberOfWorkers into a required workerConfiguration (#38576) (5f3b1b6)
- glue-alpha: wrap DataQualityRuleset DQDL in a typed value object (#38587) (fd01268)
Bug Fixes
v2.265.0
Features
- bedrock-agentcore: add StreamDeliveryResources support to Memory L2 Construct (#37527) (817c50b)
- cloudwatch: support AT_LEAST expression for composite alarm rules (#37693) (974e43b), closes #37692 #36100
- docdb: add managed password support (#35711) (fcf54bf)
- ec2: add ipAddressType and dnsRecordIpType to GatewayVpcEndpoint (#37900) (000f532), closes #37883
- ec2: add volume initialization rate to ebs props for launchtemplate (#36451) (da4281e), closes #36374
- kinesisfirehose: add HTTP Endpoint and Datadog destination (#33657) (4c47171), closes #20354 #15502
Bug Fixes
- cloudwatch: make concrete widgets assignable to widget interface (#37695) (e322035), closes #37600
- core:
cdk validatecan hang indefinitely (#38510) (0a238f3), closes #38498 #38425 - secretsmanager: correct SAR rotation app versions for GovCloud (#38462) (a29b5c0)
- bump brace-expansion to 5.0.9 to address CVE-2026-69152 (#38520) (8764b7b), closes #38496 #38410
Alpha modules (2.265.0-alpha.0)
⚠ BREAKING CHANGES
- glue-alpha: PySparkFlexEtlJob and ScalaSparkFlexEtlJob now default to
GlueVersion.V5_0instead ofV3_0. SetglueVersionexplicitly to keep the previous behavior. - glue-alpha: removal policy of existing
Databaseresources will change toRETAIN.
Features
- glue-alpha: default Flex jobs to Glue 5.0 (#38543) (36d4976)
- glue-alpha: removal policy is RETAIN for
Databaseby default (#38535) (9669928) - glue-alpha: warn on plaintext secrets (#38538) (10bf0b5)
Bug Fixes
v2.264.0
⚠ BREAKING CHANGES
- bedrockagentcore:
Gatewaymetric helpers now emit corrected CloudWatch dimensions per-gateway
metrics use{ Operation, Protocol, Resource }(was{ Resource }). Alarms/dashboards built on the
old dimensions must be updated. - bedrockagentcore:
RuntimeBasemetric helpers now emit corrected CloudWatch dimensions per-resource metrics use{ Operation, Name, Resource }(was{ Resource }) and aggregated metrics use{ AggregateOperation }(was{ Resource: 'All' }). Alarms/dashboards built on the old dimensions must be updated.
Features
- update L1 CloudFormation resource definitions (#38526) (b5693cb)
- cloudwatch: support alarm mute rules (#37504) (c3540bb), closes #37502
- update L1 CloudFormation resource definitions (#38479) (279340d)
Bug Fixes
- bedrockagentcore: gateway metrics emit correct CloudWatch dimension (#38487) (5a7d360)
- bedrockagentcore: runtime metrics emit correct CloudWatch dimensions (#38486) (4e44f24)
- cloudfront: warn when minimumProtocolVersion is set without a certificate (#37250) (52ec5f7), closes #35404
- ec2: allow EBS gp3 and io2 volumes up to 64 TiB (#37049) (10711ba), closes #37045
- stepfunctions-tasks: call-rest-api
CallApiGatewayRestApiEndpointdoes not supportJsonATAfor api_path (#37738) (9f0afdc), closes #37728 /github.com/aws/aws-cdk/blob/e207b76cc2503701b3c4e2c87023617b485b2fde/packages/aws-cdk-lib/aws-stepfunctions/lib/private/jsonata.ts#L1
Alpha modules (2.264.0-alpha.0)
⚠ BREAKING CHANGES
- glue-alpha:
IDatabase.catalogArnandIDatabase.catalogIdwere removed in factor of a type
safeICatalog, which hascatalogArnandcatalogId. Consumers and implementations were updated
accordingly.
Features
- glue-alpha: new
CatalogL2 (#38443) (6a8ba8e) - glue-alpha: strengthen data encryption for
S3Table(#38501) (eb81d5e), closes /docs.aws.amazon.com/securityhub/latest/userguide/s3-controls.html#s3-5
Bug Fixes
v2.263.0
Features
- autoscaling: add support for AutoScalingInstanceRefresh UpdatePolicy (#38277) (434157f), closes #38276
- docdb: support per-instance maintenance window on DatabaseCluster (#38315) (5390624), closes #30391
- ecs: add support for using existing Cloud Map namespaces in ECS clusters (#36812) (bda00bf), closes #26698
- eks: add Provisioned Control Plane support with controlPlaneScalingTier property (#36651) (5ea1054), closes #36650
- eks: add support for Kubernetes version 1.36 (#38441) (da27b6c), closes #38411
- lambda: add Java8AL2023, Java11AL2023 and Java17AL2023 runtime for Lambda #38418 (#38419) (1e55176)
- lambda: add logGroup and systemLogLevel to CapacityProvider (#38183) (61a2e2d), closes #38182
- lambda: add PropagateTags to CapacityProvider for tag propagation (#38180) (6f86f97), closes #38181
Bug Fixes
- core: upgrade cloudformation-validate library (#38444) (d26e507), closes #38412
- bump brace-expansion to 5.0.8 to address CVE-2026-14257 (#38410) (5aaa395), closes #38409 #38063
Alpha modules (2.263.0-alpha.0)
⚠ BREAKING CHANGES
- mediaconnect:
removalPolicyprop removed fromFlowProps,GatewayProps, andBridgeProps. These resources now follow CloudFormation's default deletion behaviour (Delete).
Bug Fixes
v2.262.2
v2.262.1
v2.262.0
Features
- ecs: add support ECS-optimized Amazon Linux 2023 (Neuron) AMI (#34689) (ad665c4)
- mediaconnect: l2 construct (#37945) (8e9e001)
- update L1 CloudFormation resource definitions (#38275) (2b1c632)
- apigateway: alb integration (#36247) (20dbdd9), closes #36184
- bedrockagentcore: support service/region in IAM credential provider for gateway targets (#37697) (08a2543), closes #37696
- cloudfront: add Managed-HostHeaderOnly origin request policy (#38236) (0e66e47), closes #38234
- core: templates are validated against a comprehensive default rule set (#38135) (023c5bf)
Bug Fixes
- cross-stack warnings are emitted for nested stacks (#38355) (db98909)
- apigateway: revert alb integration that breaks jsii go packaging (#38305) (18158a4), closes #36247 #36247 #36247 #36247
- aws-cdk-lib: fatal validations don't show plugin name (#38273) (a88d1ba)
- aws-cdk-lib: validation namespaces for annotations are inconsistent (#38256) (75893d9)
- backup: lifecycle and vault lock validations reject tokenized durations (#38264) (0ff20a3), closes #38263 #38246 #37751 #25943 #38246 #37751 #25943
- certificatemanager: use hasOwnProperty in apexDomain to prevent prototype collision (#37195) (ec38947), closes #37193
- cloudfront-origins: validate httpPort and httpsPort range in HttpOrigin (#37872) (8a62b58)
- core: stack-related validation has an empty construct path (#38350) (0af7c34)
- core: stack.node.addDependency gets slower as stacks grow (#38314) (0728618)
- core: synth crashes with EISDIR on a symlink-to-directory when a validation plugin is registered (#38299) (be0fdc4), closes #38295
- elasticloadbalancingv2: improve handling for
dropInvalidHeaderFieldsin case of default or switching from true to false (#36483) (208b9db), closes #36409 - lambda: allow SnapStart for container image functions (#38265) (586dc4f), closes #30898
- lambda: validations reject tokenized provisioned concurrency and async invoke config values (#38246) (4aa7e78), closes #38245 #37197 #36275 #37197
- opensearchservice: allow gp3 ebs throughput up to 2000 MiB/s (#38001) (f0cfc5b), closes #38000 #36074
- spec2cdk: add IVS to event pattern method name prefixes (#38322) (d6d1e8d)
- validation: incorrectly relative paths in Cloud Assemblies (#38352) (3f9422f), closes #38333
- validation: validation reports are not self-contained (#38333) (5d11d70)
Reverts
Alpha modules (2.262.0-alpha.0)
Bug Fixes
v2.261.0
⚠ BREAKING CHANGES
- ** L1 resources are automatically generated from public CloudFormation Resource Schemas. They are built to closely reflect the real state of CloudFormation. Sometimes these updates can contain changes that are incompatible with previous types, but more accurately reflect reality. In this release we have changed:
- aws-cloudwatch: AWS::CloudWatch::LogAlarm: QueryLanguage property has been removed from the ScheduledQueryConfiguration type.
- aws-elasticloadbalancing: AWS::ElasticLoadBalancing::LoadBalancer: Id attribute has been removed and the primary identifier is now LoadBalancerName.
Features
- update L1 CloudFormation resource definitions (#38189) (5aabd32)
- core: add git source metadata to CloudFormation templates (#37368) (765271b)
- rds: support native Secrets Manager integration for RDS Cluster and Instance (#35734) (07d5623), closes #29239
Bug Fixes
- improve internal path detection (#38205) (6a1934d)
- ecr-assets: tarball asset build command not escaped (#38171) (bad8a3a)
- print validation errors according to new style (#38166) (031aba8)
Alpha modules (2.261.0-alpha.0)
Features
v2.260.0
Features
- update L1 CloudFormation resource definitions (#38151) (f266a47), closes /docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-prereq-policies.html#s3
- core: add external traces to ConstructError (#38131) (e360dd9)
- core: append external stack traces to metadata if available (#38124) (c77a08c)
Bug Fixes
- bundling: docker build can be skipped if already performed (#38134) (2f9ae95)
- core: stack traces contain decorator paths (#38130) (318f645)
- core: weak cross-stack references fail for list attributes (#37948) (6bb9d75), closes #37910
- lambda-nodejs: reuse posixShellEscape for Docker bundling file operations (#38133) (baa9e1d)
Alpha modules (2.260.0-alpha.0)
v2.259.0
⚠ BREAKING CHANGES
-
lambda:
Runtime.NODEJS_LATESTnow resolves tonodejs24.xin every region. Customers who pin to a concrete runtime (Runtime.NODEJS_22_X,useLatestRuntimeVersion: falseinaws-lambda-nodejs.NodejsFunction) are unaffected. ExistingAWS::Lambda::Functionresources synthesized withNODEJS_LATESTwill seeRuntime: nodejs22.x→Runtime: nodejs24.xon next deploy. Lambda accepts runtime updates in place.Customer-code compatibility — IMPORTANT: Node.js 24 removes support for callback-style asynchronous handlers (
(event, context, callback) => {...}) per the launch blog. Customers whose Lambda code still uses callback-based handlers will see runtime errors after the bump. Customers should migrate toasync (event, context) => {...}or pin toRuntime.NODEJS_22_Xexplicitly.
Features
- core: recommend the use of weak references if no choice has been made (#38070) (6e74e5e)
- ecs: add forceNewDeployment option for Fargate and EC2 services (#36797) (3d9c4df), closes #27762
- eks: use the recommended AL2023 instead of AL2 AMI type (under feature flag) (#37850) (6a2dcb7), closes #32211
- lambda: upgrade lambda and custom resource default runtime to nodejs24.x (#38031) (36c84c6)
Bug Fixes
- spec2cdk: sanitize hyphens in EventBridge event namespace names (#38088) (b8f41bf), closes 40aws-cdk/spec2cdk/lib/naming/conventions.ts#L195
Reverts
- "chore(bundling): check if docker image is cached before building" (#38116) (359f2fb), closes aws/aws-cdk#37951