Compute images supported with the CodeBuild-hosted GitLab runner - AWS CodeBuild

Compute images supported with the CodeBuild-hosted GitLab runner

In the label you configured in Tutorial: Configure a CodeBuild-hosted GitLab runner, you can override your Amazon EC2 environment settings by using the values in the first three columns. CodeBuild provides the following Amazon EC2 compute images. For more information about

Environment type Image identifier Instance size Platform Image Definition

linux

4.0

small

medium

large

xlarge

2xlarge

gpu_small

gpu_large

Amazon Linux 2 aws/codebuild/amazonlinux-x86_64-standard:4.0 al/standard/4.0

linux

5.0

Amazon Linux 2023 aws/codebuild/amazonlinux-x86_64-standard:5.0 al/standard/5.0

arm

2.0

small

medium

large

xlarge

2xlarge

Amazon Linux 2 aws/codebuild/amazonlinux-aarch64-standard:2.0 al/aarch64/standard/2.0

arm

3.0

Amazon Linux 2023 aws/codebuild/amazonlinux-aarch64-standard:3.0 al/aarch64/standard/3.0

ubuntu

5.0

small

medium

large

xlarge

2xlarge

gpu_small

gpu_large

Ubuntu 20.04 aws/codebuild/standard:5.0 ubuntu/standard/5.0

ubuntu

6.0

Ubuntu 22.04 aws/codebuild/standard:6.0 ubuntu/standard/6.0

ubuntu

7.0

Ubuntu 22.04 aws/codebuild/standard:7.0 ubuntu/standard/7.0

windows

1.0

medium

large

Windows Server Core 2019 aws/codebuild/windows-base:2019-1.0 N/A
Windows Server Core 2022 aws/codebuild/windows-base:2022-1.0 N/A

windows

2.0

Windows Server Core 2019 aws/codebuild/windows-base:2019-2.0 N/A

windows

3.0

Windows Server Core 2019 aws/codebuild/windows-base:2019-3.0 N/A

In addition, you can override your Lambda environment settings by using the following values. For more information about CodeBuild Lambda compute, see Run builds on AWS Lambda compute. CodeBuild supports the following Lambda compute images:

Environment type Runtime version Instance size

linux-lambda

dotnet6

go1.21

corretto11

corretto17

corretto21

nodejs18

nodejs20

python3.11

python3.12

ruby3.2

1GB

2GB

4GB

8GB

10GB

arm-lambda

For more information, see Build environment compute modes and types and Docker images provided by CodeBuild.