From 96b2dc635e575e0bad26d5c694ef319dc57f250a Mon Sep 17 00:00:00 2001 From: Anselmo Alvarado Date: Wed, 19 Jun 2024 17:51:49 -0600 Subject: [PATCH] chore(codebuild): add new CodeBuild lambda dotnet8 compute images (#30564) Add new Lambda dotnet8 compute images for both aarch64 and x86_64 architectures: - aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet8 - aws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet8 **References** - https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html#lambda-compute-images - https://github.com/aws/aws-cdk/pull/28630 - https://github.com/aws/aws-codebuild-docker-images/pull/719 ---- *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 | 2 ++ .../aws-cdk-lib/aws-codebuild/lib/linux-lambda-build-image.ts | 2 ++ 2 files changed, 4 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 42fe222885528..d8b51592588f2 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 @@ -39,6 +39,8 @@ export class LinuxArmLambdaBuildImage implements IBuildImage { public static readonly AMAZON_LINUX_2_GO_1_21 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:go1.21'); /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet6` build image. */ public static readonly AMAZON_LINUX_2_DOTNET_6 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet6'); + /** The `aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet8` build image. */ + public static readonly AMAZON_LINUX_2023_DOTNET_8 = LinuxArmLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-aarch64-lambda-standard:dotnet8'); /** * Uses a Docker image provided by CodeBuild. 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 fa66b17940d98..c152a135d3e5c 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 @@ -39,6 +39,8 @@ export class LinuxLambdaBuildImage implements IBuildImage { public static readonly AMAZON_LINUX_2_GO_1_21 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:go1.21'); /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet6` build image. */ public static readonly AMAZON_LINUX_2_DOTNET_6 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet6'); + /** The `aws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet8` build image. */ + public static readonly AMAZON_LINUX_2023_DOTNET_8 = LinuxLambdaBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux-x86_64-lambda-standard:dotnet8'); /** * Uses a Docker image provided by CodeBuild.