Runtime versions - AWS CodeBuild

Runtime versions

When you specify a runtime in the runtime-versions section of your buildspec file, you can specify a specific version, a specific major version and the latest minor version, or the latest version. The following table lists the available runtimes and how to specify them. Not all runtime versions are available on all images. For more information, see Available runtimes.

Ubuntu and Amazon Linux 2 platform runtime versions
Runtime name Version Specific version Specific major and latest minor version Latest version
android

28

android: 28

android: 28.x

android: latest

29

android: 29

android: 29.x

dotnet

3.0

dotnet: 3.0

dotnet: 3.x

dotnet: latest

3.1

dotnet: 3.1

5.0

dotnet: 5.0

dotnet: 5.x

golang

1.12

golang: 1.12

golang: 1.x

golang: latest

1.13

golang: 1.13

1.14

golang: 1.14

1.15

golang: 1.15

1.16

golang: 1.16

java

openjdk8

java: openjdk8

java: openjdk8.x

java: latest

openjdk11

java: openjdk11

java: openjdk11.x

corretto8

java: corretto8

java: corretto8.x

corretto11

java: corretto11

java: corretto11.x

nodejs

8

nodejs: 8

nodejs: 8.x

nodejs: latest

10

nodejs: 10

nodejs: 10.x

12

nodejs: 12

nodejs: 12.x

14

nodejs: 14

nodejs: 14.x

php

7.3

php: 7.3

php: 7.x

php: latest

7.4

php: 7.4

8.0

php: 8.0

php: 8.x

python

3.7

python: 3.7

python: 3.x

python: latest

3.8

python: 3.8

3.9

python: 3.9

ruby

2.6

ruby: 2.6

ruby: 2.x

ruby: latest

2.7

ruby: 2.7

Note

The aws/codebuild/amazonlinux2-aarch64-standard:1.0 image does not support the Android Runtime (ART).

You can use a build specification to install other components (for example, the AWS CLI, Apache Maven, Apache Ant, Mocha, RSpec, or similar) during the install build phase. For more information, see Buildspec example.