Skip to content

Commit

Permalink
chore(codebuild): add support for Windows Server Core 2019 3.0 CodeBu…
Browse files Browse the repository at this point in the history
…ild image
  • Loading branch information
awschristou committed Mar 1, 2024
1 parent 985c7e4 commit 1324fe6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/aws-cdk-lib/aws-codebuild/lib/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,16 @@ export class WindowsBuildImage implements IBuildImage {
imageType: WindowsImageType.SERVER_2019,
});

/**
* The standard CodeBuild image `aws/codebuild/windows-base:2019-3.0`, which is
* based off Windows Server Core 2019.
*/
public static readonly WIN_SERVER_CORE_2019_BASE_3_0: IBuildImage = new WindowsBuildImage({
imageId: 'aws/codebuild/windows-base:2019-3.0',
imagePullPrincipalType: ImagePullPrincipalType.CODEBUILD,
imageType: WindowsImageType.SERVER_2019,
});

/**
* @returns a Windows build image from a Docker Hub image.
*/
Expand Down
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-codebuild/test/project.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ describe('Environment', () => {
['Amazon Linux 4.0', codebuild.LinuxBuildImage.AMAZON_LINUX_2_4, 'aws/codebuild/amazonlinux2-x86_64-standard:4.0'],
['Amazon Linux 5.0', codebuild.LinuxBuildImage.AMAZON_LINUX_2_5, 'aws/codebuild/amazonlinux2-x86_64-standard:5.0'],
['Windows Server Core 2019 2.0', codebuild.WindowsBuildImage.WIN_SERVER_CORE_2019_BASE_2_0, 'aws/codebuild/windows-base:2019-2.0'],
['Windows Server Core 2019 3.0', codebuild.WindowsBuildImage.WIN_SERVER_CORE_2019_BASE_3_0, 'aws/codebuild/windows-base:2019-3.0'],
])('has build image for %s', (_, buildImage, expected) => {
// GIVEN
const stack = new cdk.Stack();
Expand Down

0 comments on commit 1324fe6

Please sign in to comment.