Skip to content

Commit

Permalink
feat(codebuild): new CodeBuild lambda compute images (#28630)
Browse files Browse the repository at this point in the history
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
aws/aws-codebuild-docker-images#687

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
paavovaananen-cgi authored Feb 2, 2024
1 parent 00ea806 commit 610fce1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 610fce1

Please sign in to comment.