Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"EncryptionKey": "alias/aws/s3",
"Environment": {
"ComputeType": "BUILD_LAMBDA_1GB",
"Image": "aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs18",
"Image": "aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs24",
"PrivilegedMode": false,
"Type": "ARM_LAMBDA_CONTAINER"
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LinuxArmLambdaImageTestStack extends Stack {
}),
environment: {
computeType: ComputeType.LAMBDA_1GB,
buildImage: LinuxArmLambdaBuildImage.AMAZON_LINUX_2_NODE_18,
buildImage: LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_NODE_24,
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"EncryptionKey": "alias/aws/s3",
"Environment": {
"ComputeType": "BUILD_LAMBDA_1GB",
"Image": "aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs18",
"Image": "aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs24",
"PrivilegedMode": false,
"Type": "LINUX_LAMBDA_CONTAINER"
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LinuxLambdaImageTestStack extends Stack {
}),
environment: {
computeType: ComputeType.LAMBDA_1GB,
buildImage: LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18,
buildImage: LinuxLambdaBuildImage.AMAZON_LINUX_2023_NODE_24,
},
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-codebuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ You can specify one of the predefined Windows/Linux images by using one
of the constants such as `WindowsBuildImage.WIN_SERVER_CORE_2019_BASE`,
`WindowsBuildImage.WINDOWS_BASE_2_0`, `LinuxBuildImage.STANDARD_2_0`,
`LinuxBuildImage.AMAZON_LINUX_2_5`, `MacBuildImage.BASE_14`, `MacBuildImage.BASE_15`, `MacBuildImage.BASE_26`, `LinuxArmBuildImage.AMAZON_LINUX_2_ARM`,
`LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18` or `LinuxArmLambdaBuildImage.AMAZON_LINUX_2_NODE_18`.
`LinuxLambdaBuildImage.AMAZON_LINUX_2_NODE_18`, `LinuxLambdaBuildImage.AMAZON_LINUX_2023_NODE_24`, `LinuxArmLambdaBuildImage.AMAZON_LINUX_2_NODE_18` or `LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_NODE_24`.

Alternatively, you can specify a custom image using one of the static methods on
`LinuxBuildImage`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class LinuxArmLambdaBuildImage implements IBuildImage {
public static readonly AMAZON_LINUX_2023_NODE_20 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs20');
/** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs22` build image. */
public static readonly AMAZON_LINUX_2023_NODE_22 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs22');
/** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs24` build image. */
public static readonly AMAZON_LINUX_2023_NODE_24 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs24');
/** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.11` build image. */
public static readonly AMAZON_LINUX_2_PYTHON_3_11 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.11');
/** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12` build image. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export class LinuxLambdaBuildImage implements IBuildImage {
public static readonly AMAZON_LINUX_2023_NODE_20 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs20');
/** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs22` build image. */
public static readonly AMAZON_LINUX_2023_NODE_22 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs22');
/** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs24` build image. */
public static readonly AMAZON_LINUX_2023_NODE_24 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs24');
/** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.11` build image. */
public static readonly AMAZON_LINUX_2_PYTHON_3_11 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.11');
/** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.12` build image. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ describe('Linux ARM Lambda build image', () => {
}).toThrow(/Invalid CodeBuild environment: Cannot specify timeout for Lambda compute/);
});

test('AMAZON_LINUX_2023_NODE_24 has correct image id', () => {
expect(codebuild.LinuxArmLambdaBuildImage.AMAZON_LINUX_2023_NODE_24.imageId).toEqual('aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs24');
});

test('cannot be used in conjunction with privileged property', () => {
const stack = new cdk.Stack();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ describe('Linux Lambda build image', () => {
}).toThrow(/Invalid CodeBuild environment: Cannot specify timeout for Lambda compute/);
});

test('AMAZON_LINUX_2023_NODE_24 has correct image id', () => {
expect(codebuild.LinuxLambdaBuildImage.AMAZON_LINUX_2023_NODE_24.imageId).toEqual('aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs24');
});

test('cannot be used in conjunction with privileged property', () => {
const stack = new cdk.Stack();

Expand Down
Loading