Available runtimes - AWS CodeBuild

Available runtimes

You can specify one or more runtimes in the runtime-versions section of your buildspec file. If your runtime is dependent upon another runtime, you can also specify its dependent runtime in the buildspec file. If you do not specify any runtimes in the buildspec file, CodeBuild chooses the default runtimes that are available in the image you use. If you specify one or more runtimes, CodeBuild uses only those runtimes. If a dependent runtime is not specified, CodeBuild attempts to choose the dependent runtime for you. For more information, see Specify runtime versions in the buildspec file.

Linux image runtimes

The following table contains the available runtimes and the standard Linux images that support them.

Ubuntu and Amazon Linux platform runtimes
Runtime name Version Images
dotnet

3.1

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

5.0

Ubuntu standard:5.0

6.0

Amazon Linux 2 x86_64 Lambda standard:dotnet6

Amazon Linux 2 AArch64 Lambda standard:dotnet6

Amazon Linux 2 x86_64 standard:4.0

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:6.0

Ubuntu standard:7.0

8.0

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

golang

1.12

Amazon Linux 2 AArch64 standard:2.0

1.13

Amazon Linux 2 AArch64 standard:2.0

1.14

Amazon Linux 2 AArch64 standard:2.0

1.15

Ubuntu standard:5.0

1.16

Ubuntu standard:5.0

1.18

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

1.20

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

1.21

Amazon Linux 2 x86_64 Lambda standard:go1.21

Amazon Linux 2 AArch64 Lambda standard:go1.21

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

1.22

Amazon Linux 2023 x86_64 standard:5.0

Ubuntu standard:7.0

java

corretto8

Amazon Linux 2 x86_64 standard:corretto8

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

Ubuntu standard:7.0

corretto11

Amazon Linux 2 x86_64 standard:corretto11

Amazon Linux 2 x86_64 Lambda standard:corretto11

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2 AArch64 Lambda standard:corretto11

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

Ubuntu standard:7.0

corretto17

Amazon Linux 2 x86_64 Lambda standard:corretto17

Amazon Linux 2 AArch64 Lambda standard:corretto17

Amazon Linux 2 x86_64 standard:4.0

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:6.0

Ubuntu standard:7.0

corretto21

Amazon Linux 2 x86_64 Lambda standard:corretto21

Amazon Linux 2 AArch64 Lambda standard:corretto21

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

nodejs

10

Amazon Linux 2 AArch64 standard:2.0

12

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

14

Ubuntu standard:5.0

16

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

18

Amazon Linux 2 x86_64 Lambda standard:nodejs18

Amazon Linux 2 AArch64 Lambda standard:nodejs18

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

20

Amazon Linux 2 x86_64 Lambda standard:nodejs20

Amazon Linux 2 AArch64 Lambda standard:nodejs20

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

php

7.3

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

7.4

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

8.0

Ubuntu standard:5.0

8.1

Amazon Linux 2 x86_64 standard:4.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:6.0

8.2

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

8.3

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

python

3.7

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

3.8

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

3.9

Amazon Linux 2 x86_64 standard:4.0

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

Ubuntu standard:7.0

3.10

Amazon Linux 2023 x86_64 standard:5.0

Ubuntu standard:6.0

Ubuntu standard:7.0

3.11

Amazon Linux 2 x86_64 Lambda standard:python3.11

Amazon Linux 2 AArch64 Lambda standard:python3.11

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

3.12

Amazon Linux 2 x86_64 Lambda standard:python3.12

Amazon Linux 2 AArch64 Lambda standard:python3.12

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

ruby

2.6

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

2.7

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:5.0

3.1

Amazon Linux 2 x86_64 standard:4.0

Amazon Linux 2023 x86_64 standard:5.0

Ubuntu standard:6.0

Ubuntu standard:7.0

3.2

Amazon Linux 2 x86_64 Lambda standard:ruby3.2

Amazon Linux 2 AArch64 Lambda standard:ruby3.2

Amazon Linux 2023 x86_64 standard:5.0

Amazon Linux 2023 AArch64 standard:3.0

Ubuntu standard:7.0

3.3

Amazon Linux 2023 x86_64 standard:5.0

Ubuntu standard:7.0

macOS image runtimes

Important

The CodeBuild curated images for Mac builds contain macOS and Xcode pre-installed. By using the Xcode software, you acknowledge, understand, and consent to the Xcode and Apple SDKs Agreement. If you do not accept the terms and conditions of the agreement, do not use the Xcode software. Instead, provide your own Amazon Machine Images (AMI). For more information, see How do I configure a reserved capacity macOS fleet?

The following table contains the available runtimes supported by macOS.

macOS platform runtimes
Runtime name Version Additional notes
Xcode

15.4

bash

3.2.57

clang

15.0.0

dotnet sdk

8.0.302

gcc

11.4.0

12.3.0

13.3.0

14.1.0

Available by using the gcc-11 alias

Available by using the gcc-12 alias

Available by using the gcc-13 alias

Available by using the gcc-14 alias

gnu

11.4.0

12.3.0

13.3.0

14.1.0

Available by using the gfortran-11 alias

Available by using the gfortran-12 alias

Available by using the gfortran-13 alias

Available by using the gfortran-14 alias

golang 1.22.4
java

Corretto8

Corretto11

Corretto17

Corretto21

kotlin 2.0.0
mono 6.12.0.206
nodejs

18.20.3

20.14.0

22.3.0

perl 5.34.1
php

8.1.29

8.2.20

8.3.8

python

3.9.19

3.10.14

3.11.9

3.12.3

ruby

3.1.6

3.2.4

3.3.2

rust 1.79.0
swift 5.10.0.13

Windows image runtimes

The base image of the Windows Server Core 2019 contains the following runtimes.

Windows platform runtimes
Runtime name Windows Server Core 2019 standard:1.0 versions Windows Server Core 2019 standard:2.0 versions Windows Server Core 2019 standard:3.0 versions
dotnet

3.1

5.0

3.1

6.0

7.0

6.0

7.0

8.0

dotnet sdk

3.1

5.0

3.1

6.0

7.0

8.0
golang 1.14 1.18 1.21
gradle 6.7 7.6 8.5
java Corretto11

Corretto11

Corretto17

Corretto21
maven 3.6 3.8 3.9
nodejs 14.15 16.19 20.11
php 7.4 8.1 8.3
powershell 7.1 7.2 7.4
python 3.8 3.10 3.12
ruby 2.7 3.1 3.3