Skip to content

chore(codebuild): remove deprecated Ubuntu 14.04 and Win 2016 Base images#37265

Open
ashrafee-dev wants to merge 3 commits intoaws:mainfrom
ashrafee-dev:remove-codebuild-ubuntu-14-deprecated
Open

chore(codebuild): remove deprecated Ubuntu 14.04 and Win 2016 Base images#37265
ashrafee-dev wants to merge 3 commits intoaws:mainfrom
ashrafee-dev:remove-codebuild-ubuntu-14-deprecated

Conversation

@ashrafee-dev
Copy link
Contributor

@ashrafee-dev ashrafee-dev commented Mar 17, 2026

Issue # (if applicable)

Partially addresses #36342

Reason for this change

CDK v1 is end-of-life. The deprecated CodeBuild image constants (UBUNTU_14_04_* and WIN_SERVER_CORE_2016_BASE) are legacy v1 holdovers that are already excluded from the generated jsii output. Their implementation remains in the source, but they are no longer part of the public library surface. This change removes that leftover code now that v1 compatibility is no longer needed.

Description of changes

This PR removes deprecated CodeBuild image constants that were previously kept only for v1 compatibility:

  • Removed 29 UBUNTU_14_04_* constants from LinuxBuildImage in packages/aws-cdk-lib/aws-codebuild/lib/project.ts
  • Removed WIN_SERVER_CORE_2016_BASE from WindowsBuildImage in packages/aws-cdk-lib/aws-codebuild/lib/project.ts
  • Updated packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.ts to replace UBUNTU_14_04_DOCKER_17_09_0 with STANDARD_7_0
  • Updated packages/aws-cdk-lib/aws-codebuild/test/codebuild.test.ts to remove references to WIN_SERVER_CORE_2016_BASE
  • Removed the corresponding entries from deprecated_apis.txt
  • Removed the corresponding rows from DEPRECATED_APIs.md

These APIs were already excluded from jsii output through deprecated_apis.txt. Removing them from the source and deprecated API listings completes the cleanup and aligns with the incremental deprecation-removal approach.

Describe any new or updated permissions being added

N/A — no new or updated IAM permissions are required.

Description of how you validated changes

  • Ran the relevant CodeBuild unit tests
  • Ran the related integration test(s)
  • Ran build/synth tooling to confirm the package still builds successfully

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…ages

- Remove UBUNTU_14_04_* constants from LinuxBuildImage
- Remove WIN_SERVER_CORE_2016_BASE from WindowsBuildImage
- Update integ.pipeline-ecs-deploy to use STANDARD_7_0
- Remove corresponding entries from deprecated_apis.txt
@aws-cdk-automation aws-cdk-automation requested a review from a team March 17, 2026 03:58
@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p1 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Mar 17, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ☑️SkippedFailed ❌️
Security Guardian Results24 ran23 passed1 failed
TestResult
Security Guardian Results
packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.js.snapshot/aws-cdk-codepipeline-ecs-deploy.template.json
iam-no-overly-permissive-passrole.guard❌ failure

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

⚠️ Experimental Feature: This security report is currently in experimental phase. Results may include false positives and the rules are being actively refined.
Please try merge from main to avoid findings unrelated to the PR.


TestsPassed ☑️SkippedFailed ❌️
Security Guardian Results with resolved templates24 ran22 passed2 failed
TestResult
Security Guardian Results with resolved templates
packages/@aws-cdk-testing/framework-integ/test/aws-codepipeline-actions/test/integ.pipeline-ecs-deploy.js.snapshot/aws-cdk-codepipeline-ecs-deploy.template.json
iam-no-overly-permissive-passrole.guard❌ failure
iam-role-root-principal-needs-conditions.guard❌ failure

@ashrafee-dev ashrafee-dev force-pushed the remove-codebuild-ubuntu-14-deprecated branch from 007ff03 to 64e9219 Compare March 18, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/medium Medium work item – several days of effort p1 pr/needs-maintainer-review This PR needs a review from a Core Team Member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants