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 2 platform runtimes
Runtime name Version Images
android

28

Amazon Linux 2 x86_64 standard:3.0

Ubuntu standard:4.0

29

Amazon Linux 2 x86_64 standard:3.0

Ubuntu standard:4.0

dotnet

3.1

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

5.0

Ubuntu standard:5.0

6.0

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

golang

1.12

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

1.13

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

1.14

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.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

java

corretto8

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

corretto11

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

corretto17

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

nodejs

8

Amazon Linux 2 AArch64 standard:1.0

10

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

12

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

14

Ubuntu standard:5.0

16

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

php

7.3

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

7.4

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

8.0

Ubuntu standard:5.0

8.1

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

python

3.7

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

3.8

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

3.9

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 x86_64 standard:4.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

3.10

Ubuntu standard:6.0

ruby

2.6

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:1.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

2.7

Amazon Linux 2 x86_64 standard:3.0

Amazon Linux 2 AArch64 standard:2.0

Ubuntu standard:4.0

Ubuntu standard:5.0

3.1

Amazon Linux 2 x86_64 standard:4.0

Ubuntu standard:6.0

Windows image runtimes

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

Windows platform runtimes
Runtime name Versions available in windows-base:2019-1.0 Versions available in windows-base:2019-2.0
dotnet 3.1.404

5.0

3.1.419

6.0.300

golang 1.14 1.18.2
nodejs 12.18 16.15.0
java corretto11 corretto11

corretto17

php 7.4.7 8.1.6
powershell 7.0.2 7.2.4
python 3.8.3 3.10.4
ruby 2.7 3.1.1.1