Skip to content

Commit c4aec95

Browse files
authored
chore(codebuild): deprecate images that are no longer actively maintained (#28533)
As per these documents, the following build image is not actively maintained, so I added @deprecated tag in this PR. - `standard` - `STANDARD_1_0` - `STANDARD_2_0` - `STANDARD_3_0` - `STANDARD_4_0` - `amazonlinux2-x86_64-standard` - `AMAZON_LINUX_2` - `AMAZON_LINUX_2_2` - `AMAZON_LINUX_2_3` - `amazonlinux2-aarch64-standard` - `AMAZON_LINUX_2_STANDARD_1_0` https://github.com/aws/aws-codebuild-docker-images?tab=readme-ov-file#image-maintenance https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html relates: #23096 (comment), #16707 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent cbac240 commit c4aec95

File tree

2 files changed

+49
-35
lines changed

2 files changed

+49
-35
lines changed

packages/aws-cdk-lib/aws-codebuild/lib/linux-arm-build-image.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ interface LinuxArmBuildImageProps {
3030
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
3131
*/
3232
export class LinuxArmBuildImage implements IBuildImage {
33-
/** Image "aws/codebuild/amazonlinux2-aarch64-standard:1.0". */
33+
/**
34+
* Image "aws/codebuild/amazonlinux2-aarch64-standard:1.0".
35+
* @deprecated Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead.
36+
* */
3437
public static readonly AMAZON_LINUX_2_STANDARD_1_0 = LinuxArmBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-aarch64-standard:1.0');
3538
/** Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0". */
3639
public static readonly AMAZON_LINUX_2_STANDARD_2_0 = LinuxArmBuildImage.fromCodeBuildImageId('aws/codebuild/amazonlinux2-aarch64-standard:2.0');

packages/aws-cdk-lib/aws-codebuild/lib/project.ts

+45-34
Original file line numberDiff line numberDiff line change
@@ -1756,10 +1756,16 @@ import { LinuxArmBuildImage } from './linux-arm-build-image';
17561756
* @see https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-available.html
17571757
*/
17581758
export class LinuxBuildImage implements IBuildImage {
1759+
/** @deprecated Use LinuxBuildImage.STANDARD_7_0 instead. */
17591760
public static readonly STANDARD_1_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/standard:1.0');
1761+
/** @deprecated Use LinuxBuildImage.STANDARD_7_0 instead. */
17601762
public static readonly STANDARD_2_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/standard:2.0');
1763+
/** @deprecated Use LinuxBuildImage.STANDARD_7_0 instead. */
17611764
public static readonly STANDARD_3_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/standard:3.0');
1762-
/** The `aws/codebuild/standard:4.0` build image. */
1765+
/**
1766+
* The `aws/codebuild/standard:4.0` build image.
1767+
* @deprecated Use LinuxBuildImage.STANDARD_7_0 instead.
1768+
* */
17631769
public static readonly STANDARD_4_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/standard:4.0');
17641770
/** The `aws/codebuild/standard:5.0` build image. */
17651771
public static readonly STANDARD_5_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/standard:5.0');
@@ -1768,84 +1774,89 @@ export class LinuxBuildImage implements IBuildImage {
17681774
/** The `aws/codebuild/standard:7.0` build image. */
17691775
public static readonly STANDARD_7_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/standard:7.0');
17701776

1777+
/** @deprecated Use LinuxBuildImage.AMAZON_LINUX_2_5 instead. */
17711778
public static readonly AMAZON_LINUX_2 = LinuxBuildImage.codeBuildImage('aws/codebuild/amazonlinux2-x86_64-standard:1.0');
1779+
/** @deprecated Use LinuxBuildImage.AMAZON_LINUX_2_5 instead. */
17721780
public static readonly AMAZON_LINUX_2_2 = LinuxBuildImage.codeBuildImage('aws/codebuild/amazonlinux2-x86_64-standard:2.0');
1773-
/** The Amazon Linux 2 x86_64 standard image, version `3.0`. */
1781+
/**
1782+
* The Amazon Linux 2 x86_64 standard image, version `3.0`.
1783+
* @deprecated Use LinuxBuildImage.AMAZON_LINUX_2_5 instead.
1784+
* */
17741785
public static readonly AMAZON_LINUX_2_3 = LinuxBuildImage.codeBuildImage('aws/codebuild/amazonlinux2-x86_64-standard:3.0');
17751786
/** The Amazon Linux 2 x86_64 standard image, version `4.0`. */
17761787
public static readonly AMAZON_LINUX_2_4 = LinuxBuildImage.codeBuildImage('aws/codebuild/amazonlinux2-x86_64-standard:4.0');
17771788
/** The Amazon Linux 2 x86_64 standard image, version `5.0`. */
17781789
public static readonly AMAZON_LINUX_2_5 = LinuxBuildImage.codeBuildImage('aws/codebuild/amazonlinux2-x86_64-standard:5.0');
17791790

1780-
/** @deprecated Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_1_0 instead. */
1791+
/** @deprecated Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead. */
17811792
public static readonly AMAZON_LINUX_2_ARM = LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_1_0;
17821793
/**
17831794
* Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0".
1784-
* @deprecated Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_2_0 instead.
1795+
* @deprecated Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead.
17851796
* */
17861797
public static readonly AMAZON_LINUX_2_ARM_2 = LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_2_0;
17871798
/** @deprecated Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead. */
17881799
public static readonly AMAZON_LINUX_2_ARM_3 = LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0;
17891800

1790-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1801+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
17911802
public static readonly UBUNTU_14_04_BASE = LinuxBuildImage.codeBuildImage('aws/codebuild/ubuntu-base:14.04');
1792-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1803+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
17931804
public static readonly UBUNTU_14_04_ANDROID_JAVA8_24_4_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/android-java-8:24.4.1');
1794-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1805+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
17951806
public static readonly UBUNTU_14_04_ANDROID_JAVA8_26_1_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/android-java-8:26.1.1');
1796-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1807+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
17971808
public static readonly UBUNTU_14_04_DOCKER_17_09_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/docker:17.09.0');
1798-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1809+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
17991810
public static readonly UBUNTU_14_04_DOCKER_18_09_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/docker:18.09.0');
1800-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1811+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18011812
public static readonly UBUNTU_14_04_GOLANG_1_10 = LinuxBuildImage.codeBuildImage('aws/codebuild/golang:1.10');
1802-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1813+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18031814
public static readonly UBUNTU_14_04_GOLANG_1_11 = LinuxBuildImage.codeBuildImage('aws/codebuild/golang:1.11');
1804-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1815+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18051816
public static readonly UBUNTU_14_04_OPEN_JDK_8 = LinuxBuildImage.codeBuildImage('aws/codebuild/java:openjdk-8');
1806-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1817+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18071818
public static readonly UBUNTU_14_04_OPEN_JDK_9 = LinuxBuildImage.codeBuildImage('aws/codebuild/java:openjdk-9');
1808-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1819+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18091820
public static readonly UBUNTU_14_04_OPEN_JDK_11 = LinuxBuildImage.codeBuildImage('aws/codebuild/java:openjdk-11');
1810-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1821+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18111822
public static readonly UBUNTU_14_04_NODEJS_10_14_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/nodejs:10.14.1');
1812-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1823+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18131824
public static readonly UBUNTU_14_04_NODEJS_10_1_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/nodejs:10.1.0');
1814-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1825+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18151826
public static readonly UBUNTU_14_04_NODEJS_8_11_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/nodejs:8.11.0');
1816-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1827+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18171828
public static readonly UBUNTU_14_04_NODEJS_6_3_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/nodejs:6.3.1');
1818-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1829+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18191830
public static readonly UBUNTU_14_04_PHP_5_6 = LinuxBuildImage.codeBuildImage('aws/codebuild/php:5.6');
1820-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1831+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18211832
public static readonly UBUNTU_14_04_PHP_7_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/php:7.0');
1822-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1833+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18231834
public static readonly UBUNTU_14_04_PHP_7_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/php:7.1');
1824-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1835+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18251836
public static readonly UBUNTU_14_04_PYTHON_3_7_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/python:3.7.1');
1826-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1837+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18271838
public static readonly UBUNTU_14_04_PYTHON_3_6_5 = LinuxBuildImage.codeBuildImage('aws/codebuild/python:3.6.5');
1828-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1839+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18291840
public static readonly UBUNTU_14_04_PYTHON_3_5_2 = LinuxBuildImage.codeBuildImage('aws/codebuild/python:3.5.2');
1830-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1841+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18311842
public static readonly UBUNTU_14_04_PYTHON_3_4_5 = LinuxBuildImage.codeBuildImage('aws/codebuild/python:3.4.5');
1832-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1843+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18331844
public static readonly UBUNTU_14_04_PYTHON_3_3_6 = LinuxBuildImage.codeBuildImage('aws/codebuild/python:3.3.6');
1834-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1845+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18351846
public static readonly UBUNTU_14_04_PYTHON_2_7_12 = LinuxBuildImage.codeBuildImage('aws/codebuild/python:2.7.12');
1836-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1847+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18371848
public static readonly UBUNTU_14_04_RUBY_2_5_3 = LinuxBuildImage.codeBuildImage('aws/codebuild/ruby:2.5.3');
1838-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1849+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18391850
public static readonly UBUNTU_14_04_RUBY_2_5_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/ruby:2.5.1');
1840-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1851+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18411852
public static readonly UBUNTU_14_04_RUBY_2_3_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/ruby:2.3.1');
1842-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1853+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18431854
public static readonly UBUNTU_14_04_RUBY_2_2_5 = LinuxBuildImage.codeBuildImage('aws/codebuild/ruby:2.2.5');
1844-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1855+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18451856
public static readonly UBUNTU_14_04_DOTNET_CORE_1_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/dot-net:core-1');
1846-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1857+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18471858
public static readonly UBUNTU_14_04_DOTNET_CORE_2_0 = LinuxBuildImage.codeBuildImage('aws/codebuild/dot-net:core-2.0');
1848-
/** @deprecated Use `STANDARD_2_0` and specify runtime in buildspec runtime-versions section */
1859+
/** @deprecated Use `STANDARD_7_0` and specify runtime in buildspec runtime-versions section */
18491860
public static readonly UBUNTU_14_04_DOTNET_CORE_2_1 = LinuxBuildImage.codeBuildImage('aws/codebuild/dot-net:core-2.1');
18501861

18511862
/**

0 commit comments

Comments
 (0)