Available runtimes - AWS CodeBuild
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

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.

Note

If a runtime version is not specified, CodeBuild uses the default version. The default version can change when a previously default version reaches end of life (EOL). To avoid unexpected changes to the build environment, we recommend specifying a runtime version in the buildspec file.

For more information, see Specify runtime versions in the buildspec file.

Linux image runtimes

The following table contains the cached runtimes in each of the standard Linux images.

Ubuntu and Amazon Linux platform runtimes
Image dotnet golang java nodejs php python ruby rust

Amazon Linux 2023 x86_64 standard:5.0

8.0

10.0 (default)

1.26

1.27 (default)

corretto8

corretto11

corretto17 (default)

corretto21

corretto25

22

24 (default)

26

8.2 (default)

8.3

8.4

8.5

3.9

3.11 (default)

3.12

3.13

3.14

3.15

3.3

3.4

4.0 (default)

—

Amazon Linux 2023 x86_64 standard:6.0

8.0

10.0 (default)

1.26

1.27 (default)

corretto8

corretto11

corretto17

corretto21

corretto25 (default)

22

24 (default)

26

8.2

8.3

8.4

8.5 (default)

3.9

3.11

3.12

3.13

3.14 (default)

3.15

3.3

3.4

4.0 (default)

1.99 (default)

Amazon Linux 2023 AArch64 standard:3.0

8.0

10.0 (default)

1.26

1.27 (default)

corretto8

corretto11

corretto17 (default)

corretto21

corretto25

22

24 (default)

26

8.2

8.3

8.4

8.5 (default)

3.9

3.11 (default)

3.12

3.13

3.14

3.15

3.3

3.4

4.0 (default)

1.99 (default)

Amazon Linux 2023 AArch64 standard:4.0

8.0

10.0 (default)

1.26

1.27 (default)

corretto8

corretto11

corretto17

corretto21

corretto25 (default)

22

24 (default)

26

8.2

8.3

8.4

8.5 (default)

3.9

3.11

3.12

3.13

3.14 (default)

3.15

3.3

3.4

4.0 (default)

1.99 (default)

Ubuntu 22.04 standard:7.0

8.0

10.0 (default)

1.26

1.27 (default)

corretto8

corretto11

corretto17 (default)

corretto21

corretto25

22

24 (default)

26

8.2 (default)

8.3

8.4

8.5

3.10

3.11 (default)

3.12

3.13

3.14

3.15

3.3

3.4

4.0 (default)

—

Ubuntu 24.04 standard:8.0

8.0

10.0 (default)

1.26

1.27 (default)

corretto8

corretto11

corretto17

corretto21

corretto25 (default)

22

24 (default)

26

8.2

8.3

8.4 (default)

8.5

3.11

3.12

3.13

3.14 (default)

3.15

3.3

3.4

4.0 (default)

1.99 (default)

Amazon Linux 2 x86_64 standard:corretto8

—

—

corretto8 (default)

—

—

—

—

—

Amazon Linux 2 x86_64 standard:corretto11

—

—

corretto11 (default)

—

—

—

—

—

The following Amazon Linux 2 and Amazon Linux 2023 Lambda compute images are also available. Each Lambda image provides a single runtime.

Lambda compute image runtimes
Runtime name Version Images
dotnet 6.0

Amazon Linux 2 x86_64 Lambda standard:dotnet6

Amazon Linux 2 AArch64 Lambda standard:dotnet6

golang 1.21

Amazon Linux 2 x86_64 Lambda standard:go1.21

Amazon Linux 2 AArch64 Lambda standard:go1.21

1.24

Amazon Linux 2023 x86_64 Lambda standard:go1.24

Amazon Linux 2023 AArch64 Lambda standard:go1.24

java corretto11

Amazon Linux 2 x86_64 Lambda standard:corretto11

Amazon Linux 2 AArch64 Lambda standard:corretto11

corretto17

Amazon Linux 2 x86_64 Lambda standard:corretto17

Amazon Linux 2 AArch64 Lambda standard:corretto17

corretto21

Amazon Linux 2 x86_64 Lambda standard:corretto21

Amazon Linux 2 AArch64 Lambda standard:corretto21

nodejs 18

Amazon Linux 2 x86_64 Lambda standard:nodejs18

Amazon Linux 2 AArch64 Lambda standard:nodejs18

20

Amazon Linux 2 x86_64 Lambda standard:nodejs20

Amazon Linux 2 AArch64 Lambda standard:nodejs20

22

Amazon Linux 2023 x86_64 Lambda standard:nodejs22

Amazon Linux 2023 AArch64 Lambda standard:nodejs22

python 3.11

Amazon Linux 2 x86_64 Lambda standard:python3.11

Amazon Linux 2 AArch64 Lambda standard:python3.11

3.12

Amazon Linux 2 x86_64 Lambda standard:python3.12

Amazon Linux 2 AArch64 Lambda standard:python3.12

3.13

Amazon Linux 2023 x86_64 Lambda standard:python3.13

Amazon Linux 2023 AArch64 Lambda standard:python3.13

ruby 3.2

Amazon Linux 2 x86_64 Lambda standard:ruby3.2

Amazon Linux 2 AArch64 Lambda standard:ruby3.2

3.4

Amazon Linux 2023 x86_64 Lambda standard:ruby3.4

Amazon Linux 2023 AArch64 Lambda standard:ruby3.4

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
Image bash clang dotnet sdk gcc gnu golang java kotlin mono nodejs perl php python ruby rust swift Xcode

macos-arm-base:15

3.2.57

17.0.0

8.0.416

10.0.101

11.5.0

12.4.0

13.4.0

14.3.0

11.5.0

12.4.0

13.4.0

14.3.0

1.24.11

1.25.4

corretto8

corretto11

corretto17

corretto21

corretto25

2.2.21

6.14.1

20.19.6

22.21.1

24.11.1

5.34.1

8.2.29

8.3.28

8.4.15

8.5.0

3.10.19

3.11.14

3.12.12

3.13.10

3.14.1

3.2.9

3.3.10

3.4.7

1.91.1

6.2.1

26.1.1

macos-arm-base:26

3.2.57

17.0.0

8.0.417

10.0.102

11.5.0

12.4.0

13.4.0

14.3.0

11.5.0

12.4.0

13.4.0

14.3.0

1.24.11

1.25.4

corretto8

corretto11

corretto17

corretto21

corretto25

2.3.0

6.14.1

20.19.6

22.21.1

24.11.1

5.34.1

8.2.30

8.3.30

8.4.17

8.5.2

3.10.19

3.11.14

3.12.12

3.13.10

3.14.1

3.2.9

3.3.10

3.4.7

1.92.0

6.2.3

26.2

Each gcc version is available by using the gcc-major-version alias, such as gcc-14. Each gnu version is available by using the gfortran-major-version alias, such as gfortran-14.

Windows image runtimes

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

Windows platform runtimes
Image dotnet dotnet sdk golang gradle java maven nodejs php powershell python ruby

Windows Server Core 2019 standard:1.0

3.1

5.0

3.1

5.0

1.14

6.7

corretto11

3.6

14.15

7.4

7.1

3.8

2.7

Windows Server Core 2019 standard:2.0

3.1

6.0

7.0

3.1

6.0

7.0

1.18

7.6

corretto11

corretto17

3.8

16.19

8.1

7.2

3.10

3.1

Windows Server Core 2019 standard:3.0

8.0

8.0

1.21

1.22

1.23

8.12

corretto8

corretto11

corretto17

corretto21

3.9

20.18

22.13

8.3

8.4

7.4

3.10

3.11

3.12

3.13

3.2

3.3

3.4