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 |
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 |