aws / aws/aws-cdk

Support Node.js 24.x runtime for S3AutoDeleteObjects custom resource

Open
#36,998 1 comment 7 reactions 0 assignees View on GitHub
@aws-cdk/aws-lambda effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the feature

Update the S3AutoDeleteObjects custom resource Lambda function to support Node.js 24.x runtime.

### Use Case

When using `autoDeleteObjects: true` on S3 buckets, CDK automatically creates a Lambda-backed custom resource to handle object deletion. Currently, this Lambda function uses Node.js 22.x runtime.

With Node.js 24.x now available, the S3AutoDeleteObjects custom resource should be updated to use this latest runtime to benefit from:
- Latest security patches
- Performance improvements
- Updated Node.js features

### Proposed Solution

Update the S3AutoDeleteObjects custom resource provider to use `nodejs24.x` runtime instead of `nodejs22.x`.

### Other Information

- Current runtime: nodejs22.x
- Affected construct: `aws-s3.Bucket` with `autoDeleteObjects: true`
- Custom resource: `Custom::S3AutoDeleteObjectsCustomResourceProvider`

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### AWS CDK Library version (aws-cdk-lib)

2.238.0

### AWS CDK CLI version

2.1106.0

### Environment details (OS name and version, etc.)

OS: Linux, Language: TypeScript, Region: ap-northeast-1

Contributor guide

Open the contributing guide

Research direction

Locate the S3AutoDeleteObjects custom resource provider used by the aws-s3.Bucket construct when autoDeleteObjects is enabled, and inspect where its Lambda runtime is set. Update the provider from nodejs22.x to nodejs24.x, then verify the generated custom resource uses the requested runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, nodejs, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.