From 610fce1eed8b0554ef77941e6ff0760fd3d758db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paavo=20V=C3=A4=C3=A4n=C3=A4nen?= <70879811+paavovaananen-cgi@users.noreply.github.com> Date: Fri, 2 Feb 2024 21:53:20 +0200 Subject: [PATCH] feat(codebuild): new CodeBuild lambda compute images (#28630) Add new Lambda compute images for both `aarch64` and `x86_64` arhictectures: - `aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto21` - `aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs20` - `aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12` Reference: https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html#lambda-compute-images https://github.com/aws/aws-codebuild-docker-images/pull/687 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../aws-codebuild/lib/linux-arm-lambda-build-image.ts | 6 ++++++ .../aws-codebuild/lib/linux-lambda-build-image.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/packages/aws-cdk-lib/aws-codebuild/lib/linux-arm-lambda-build-image.ts b/packages/aws-cdk-lib/aws-codebuild/lib/linux-arm-lambda-build-image.ts index 59cda2c713d3f..42fe222885528 100644 --- a/packages/aws-cdk-lib/aws-codebuild/lib/linux-arm-lambda-build-image.ts +++ b/packages/aws-cdk-lib/aws-codebuild/lib/linux-arm-lambda-build-image.ts @@ -21,10 +21,16 @@ interface LinuxArmLambdaBuildImageProps { export class LinuxArmLambdaBuildImage implements IBuildImage { /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs18` build image. */ public static readonly AMAZON_LINUX_2_NODE_18 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs18'); + /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs20` build image. */ + public static readonly AMAZON_LINUX_2023_NODE_20 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:nodejs20'); /** 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. */ + public static readonly AMAZON_LINUX_2023_PYTHON_3_12 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:python3.12'); /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:ruby3.2` build image. */ public static readonly AMAZON_LINUX_2_RUBY_3_2 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:ruby3.2'); + /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto21` build image. */ + public static readonly AMAZON_LINUX_2023_CORRETTO_21 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto21'); /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto17` build image. */ public static readonly AMAZON_LINUX_2_CORRETTO_17 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto17'); /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:corretto11` build image. */ diff --git a/packages/aws-cdk-lib/aws-codebuild/lib/linux-lambda-build-image.ts b/packages/aws-cdk-lib/aws-codebuild/lib/linux-lambda-build-image.ts index 68d0ac1f0742c..fa66b17940d98 100644 --- a/packages/aws-cdk-lib/aws-codebuild/lib/linux-lambda-build-image.ts +++ b/packages/aws-cdk-lib/aws-codebuild/lib/linux-lambda-build-image.ts @@ -21,10 +21,16 @@ interface LinuxLambdaBuildImageProps { export class LinuxLambdaBuildImage implements IBuildImage { /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs18` build image. */ public static readonly AMAZON_LINUX_2_NODE_18 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs18'); + /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:nodejs20` build image. */ + 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: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. */ + public static readonly AMAZON_LINUX_2023_PYTHON_3_12 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:python3.12'); /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:ruby3.2` build image. */ public static readonly AMAZON_LINUX_2_RUBY_3_2 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:ruby3.2'); + /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:corretto21` build image. */ + public static readonly AMAZON_LINUX_2023_CORRETTO_21 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:corretto21'); /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:corretto17` build image. */ public static readonly AMAZON_LINUX_2_CORRETTO_17 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:corretto17'); /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:corretto11` build image. */