Releases: aws/aws-cdk
Releases · aws/aws-cdk
v2.241.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-codedeploy: AWS::CodeDeploy::DeploymentGroup: Id attribute removed.
Features
- update L1 CloudFormation resource definitions (#37103) (f1ee45c)
- autoscaling: add deletionProtection property to AutoScalingGroup (#36924) (467f2b4)
- core: introducing CDK Mixins (#37055) (cda96cb)
- eks: add support for Kubernetes version 1.35 (#37065) (909fca3), closes #36920 #36016 cdklabs/awscdk-asset-kubectl#2669 #37070 #36950 #36016
- s3: attribute-based access control (#36229) (9ec4db3)
Bug Fixes
- bump minimatch to ^10.2.3 to resolve ReDoS vulnerabilities (#37127) (c359329), closes #37100
- dynamodb: fix SID for grants on multi-account global tables (#37057) (98d5e82)
- rds: correct engine version deprecation tags and add missing versions (#37080) (127b359), closes #37079 #36937
Alpha modules (2.241.0-alpha.0)
Features
v2.240.0
Features
- update L1 CloudFormation resource definitions (#37039) (17b2d93)
- eks-v2: graduate to stable 🚀 (#36950) (a7de51c)
- update L1 CloudFormation resource definitions (#37034) (62d40f8)
Bug Fixes
- bump minimatch to ^10.2.1 to resolve ReDoS vulnerability (GHSA-3ppc-4f35-3m26) (#37027) (e48ea41)
Alpha modules (2.240.0-alpha.0)
v2.239.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-licensemanager: AWS::LicenseManager::License: Beneficiary property is now required
aws-licensemanager: AWS::LicenseManager::License: ProductSKU property is now required
aws-sagemaker: AWS::SageMaker::Cluster: Orchestrator.Eks property is now immutable
Features
- update L1 CloudFormation resource definitions (#37031) (bc65c09)
- dynamodb: add cross-account global table replication support (#36895) (353a9bb)
- kinesisfirehose: support dynamic partitioning (#35903) (4f86a05), closes #28740
- resource policy and encrypted resource wrappers for L1s (#36849) (ee87e26)
- update L1 CloudFormation resource definitions (#36923) (64cfc4d)
- update L1 CloudFormation resource definitions (#36997) (e3eecad)
Bug Fixes
- aws-cdk-lib: update cloud-assembly-schema to resolve peer dependency conflict (#36953) (f194236), closes #36939
- aws-cdk-lib: upgrade version of
ajvthat triggers CVE scanners (#37022) (45662ba) - ec2: add VPC endpoint naming conventions for some isolated regions (#36794) (5a7fca5)
- rds: mark deprecated versions and add new engine versions (#36937) (6e061d0)
Alpha modules (2.239.0-alpha.0)
⚠ BREAKING CHANGES
redshift-alpha: update default node type from DC2_LARGE to RA3_LARGE
Features
- bedrock-agentcore-alpha: add
fromCodeAssetmethod to create runtime artifact with local code assets (#36472) (c5a87e6), closes #36473 - bedrock-agentcore-alpha: added new target type (api gateway) in agentcore gateway target. (#36841) (0842754), closes #36817
- mixins-preview: add ECS ClusterSettingsMixin (#36796) (b8ab5be)
- mixins-preview: add s3 bucket mixin for publicAccessBlock (#36905) (feed4b2)
- mixins-preview: send Vended Logs to pre-created DeliveryDestination using
toDestination()(#36896) (48f1fe6)
Bug Fixes
v2.238.0
⚠ BREAKING CHANGES
- bedrock-agentcore: Interface extensions require new property implementations
- aws-bedrock-agentcore-alpha:
-
- IGateway now requires gatewayRef getter
-
- IGatewayTarget now requires gatewayTargetRef getter
-
- IMemory now requires memoryRef getter
-
- IBedrockAgentRuntime now requires runtimeRef getter
-
- IRuntimeEndpoint now requires runtimeEndpointRef getter
-
- IBrowserCustom now requires browserCustomRef getter
-
- ICodeInterpreterCustom now requires codeInterpreterCustomRef getter
Features
- update L1 CloudFormation resource definitions (#36834) (5143fdf)
- core: allow indentation suppression in nested stacks (#35122) (d629b15), closes #32798 /github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/stack.ts#L207 /github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/stack.ts#L207 /github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/core/lib/nested-stack.ts#L25C18-L25C34
- ec2: support Firehose
IDeliveryStreamRefas flow log destination (#36278) (cd73498), closes #33883 #34596 #33757 - eks: add removal policy for all constructs (#35835) (875d9b8)
- eks: add support for EC2, HYBRID_LINUX, and HYPERPOD_LINUX access entry types (#36350) (cc059c6), closes #34394
- glue: typed partition projection (#35660) (cb1658f), closes #35428
Bug Fixes
- core: intrinsic cfn function tokens are not detected as such in java (#36843) (3f29f11)
- events: restore
Match.anyOfsupport for raw strings (#36908) (6804c7c), closes #36902 #36602 #36602 - iam: undeprecate openIdConnectProviderArn and openIdConnectProviderIssuer in IOidcProvider (#36859) (cbf0b03)
Miscellaneous Chores
Alpha modules (2.238.0-alpha.0)
Features
- eks-v2-alpha: add support for bootstrapSelfManagedAddons (#36740) (1ffe38d)
- eks-v2-alpha: add support for EKS hybrid nodes (#36749) (48ace56)
Bug Fixes
- eks-v2-alpha: ensure kubectl provider and handler functions use the same vpc configuration (#36735) (4e02f08), closes #34878 #34877
- ivs-alpha: add region constraints to integration tests (#36851) (d55fec4)
- mixins-preview: apply mixins in order (#36847) (726060c)
- mixins-preview: apply mixins in order in
MixinApplicator(#36877) (09db1c9), closes #36847
v2.237.1
v2.237.0
⚠ BREAKING CHANGES
- iam: Receivers of
IEncryptedResourceobjects now have fewer guarantees about the shape of the object. If you still require anIResource, change the type toIEncryptedResource & IResourceand/or add a type guard check usingResource.isResource(). Implementations ofIEncryptedResourceno longer need to implementIResourcebut must continue to implementIEnvironmentAware. SinceIResourceextendsIEnvironmentAware, there is no change for implementors. Calls toGrantableResources.isEncryptedResource()now require anIEnvironmentAwareargument instead ofIConstruct.
Features
- eks: add OidcProviderNative using L1 and deprecate OpenIdConnectProvider custom resource (#36589) (09383cb)
- eks: add support overwriteServiceAccount prop in service account construct (#36751) (3aa38f6)
- kms: make
trustAccountIdentitiesoptional inKeyGrants(#36786) (06676ac) - lambda: add observability support for kafka event source mappings (#36808) (dd8b419)
- update L1 CloudFormation resource definitions (#36799) (7ecd0a9)
- opensearchservice: support OI2 instance type with local NVMe storage (#36700) (034baf3), closes #36698
Bug Fixes
Alpha modules (2.237.0-alpha.0)
Features
- bedrock-agentcore-alpha: add support for custom claims and scopes to runtime/gateway authorizers (#36810) (a3abcd0)
- eks-v2-alpha: pass additional helm chart values to aws-load-balancer-controller (#36754) (cf61814), closes /github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/helm/aws-load-balancer-controller/values.yaml#L199
- mixins-preview: align Mixins API with latest RFC proposal (#36825) (82c2fdb)
- mixins-preview: handle destination bucket with KMS keys (#36776) (950401f)
Bug Fixes
v2.236.0
Features
- update L1 CloudFormation resource definitions (#36721) (7a4a443)
- ecs: add capacityOptionType (Spot support) to ManagedInstancesCapacityProvider L2 construct (#36497) (e8ad85b), closes #35648
- ecs: add built-in Linear and Canary deployments (#35981) (67ac5e7), closes #35986 #35987
- logs: add support for deletion protection configuration (#36583) (c4d1389), closes #36554 #36554
Bug Fixes
- apigatewayv2: use custom domain name instead of regional domain name when importing domain name via fromDomainNameAttributes (#36710) (fe6eb0b)
- batch: undeprecate useOptimalInstanceClasses property (#36353) (3485d53), closes #36291 #36291
- core: resources allocate unnecessary string tokens upon instantiation (#36692) (59d4928)
- core: tree.json unintentionally includes telemetry metadata (#36748) (87fd86b)
- scheduler: scheduleName returns undefined when imported from ARN (#36400) (752bd9b), closes #36361
- recent change to IAlarmAction breaks too many implementors (#36695) (0c5b0db)
Alpha modules (2.236.0-alpha.0)
Features
- bedrock-agentcore-alpha: added episodic memory strategy (#36591) (21dcfc6)
- bedrock-agentcore-alpha: added gateway interceptors (#36604) (ba8aa48)
- bedrock-agentcore-alpha: make physical name properties optional for AgentCore resources (#36354) (5137d81), closes #36341
- mixins-preview: expose
BucketPolicyStatementsMixinpublicly (#36771) (458156d) - sagemaker: add containerStartupHealthCheckTimeoutInSeconds support for EndpointConfig (#35626) (47d707a), closes #35566
Bug Fixes
v2.235.1
v2.235.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-ecs: AWS::ECS::CapacityProvider: ManagedInstancesNetworkConfiguration.SecurityGroups property is now required.
- ecs:
securityGroupsis now required inManagedInstancesCapacityProviderProps. CloudFormation has always required this field, so any code that omitted it would have failed at deployment time with a validation error. This change catches the error at compile time instead, improving the developer experience. If your code previously omittedsecurityGroups, you must now explicitly provide at least one security group. - aws-cdk-lib:
JobQueue.computeEnvironmentscontains ancomputeEnvironment: IComputeEnvironment → IComputeEnvironmentRef.BackupPlanRule.propscontains abackupVault: IBackupVault → IBackupVaultRef.ApiDestination.fromApiDestinationAttributes()return typeApiDestination → IApiDestination. This should never have returned a class but always an interface, as is the standard for referencing factories.EventDestination.buschangedIEventBus →IEventBusRef;FlowLogDestination.bind()now returns andICluster.executeCommandConfigurationcontains a member changing typeILogGroup → ILogGroupRef. - events:
ApiDestination.fromApiDestinationAttributes()now returns anIApiDestination. It used to return anApiDestinationbut this was a mistake, referencing methods always return a type by interface, not by class.EventDestination.busused to be anIEventBusbut is now anIEventBusRef; it needs to be type tested to assert it is actually anIEventBusif that is necessary. - logs: the return types of
FlowLogDestination.bind()andICluster.executeCommandConfigurationnow contain anILogGroupRefinstead of anILogGroup, which guarantees less. These fields are for communication between constructs, and their values should not be used by application builders. If they do, they will need to add a cast or a type check. - iot-actions:
enableBatchConfigproperty is explicitly disabled by default. Even with this modification, the behavior of HttpAction remains unchanged from before, but only the Cfn template will be modified.
Features
- update L1 CloudFormation resource definitions (#36694) (861f437)
- apigatewayv2-integrations: add PutEvents support for EventBridge integration (#35766) (d879e4d), closes #35714 #35714
- ecs: add none log driver option for ECS containers (#35819) (5636820), closes #35795 #35795
- iot-actions: batching HTTP action messages (#36642) (fbc50ea)
- rds: add Read/Write IOPS metrics to DatabaseInstance and VolumeRead/Write IOPs metrics to DatabaseCluster (#35773) (d8e023d), closes #35327 #35327
- rds: support default auth scheme for RDS Proxy (#35635) (99f6c74), closes #35558
- spec2cdk: support for auto-generated grants in alpha modules (#36206) (776f837)
- synthetics: add syn-nodejs-3.0 runtime (#36652) (18f9fef), closes #36648
- synthetics: playwright 4.0 and 5.0 runtimes (#36590) (82cd9a6)
Bug Fixes
- aws-cdk-lib: reference interfaces for remaining services (#36359) (ed1f9de)
- core: make DetachedConstruct.node non-enumerable (#36672) (98d41ca), closes #36078 #36015
- ecs: make securityGroups required in ManagedInstancesCapacityProvider (#36685) (6734426)
- events: event Matcher class to be compatible with mergeEventPattern function (#36602) (e3f7dba), closes /github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-s3/lib/bucket.ts#L657-L657
- opensearchservice: use KMS Key ARN for cross-account encryption (#36020) (cccd94c), closes #36017
- stepfunctions: allow JSONata expressions for Map maxConcurrency (#36462) (2230c87), closes #36274
RuntimeError: apiEndpoint is not configured on the imported HttpApi(revert of "chore(apigatewayv2): reference interfaces") (#36623) (fb17d39), closes aws/aws-cdk#36378
Miscellaneous Chores
Alpha modules (2.235.0-alpha.0)
⚠ BREAKING CHANGES
- bedrock-agentcore-alpha: The User Pool Client will be replaced and new Resource Server and Domain resources will be added for existing Gateway stacks using the default Cognito authorizer.
Checklist
- My code adheres to the CONTRIBUTING GUIDE and DESIGN GUIDELINES
Bug Fixes
v2.234.1
Bug Fixes
RuntimeError: apiEndpoint is not configured on the imported HttpApi(revert of "chore(apigatewayv2): reference interfaces") (#36623) (1c10d49), closes aws/aws-cdk#36378