Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Aug 5, 2025

Issue # (if applicable)

N/A

Reason for this change

When support for the Windows Server Core 2022 image in AWS CodeBuild was initially added in #29754, the image type was not yet available for use with on-demand capacity.

This has now changed apparently (and tested), so we can remove the validation preventing use.
Additional removed a future looking test, since it is bad practices to add validations for the future without clearly documented evidence that this is going to happen.

I've searched the current docs, and there's no note whatsoever that Windows Server Core 2022 images are not supported with on-demand capacity.

Description of changes

  • Added Windows Server Core 2022 image support to the CodeBuild project configuration
  • Updated integration tests to include the new Windows Core 2022 image variant
  • Updated test snapshots to reflect the new image option

Describe any new or updated permissions being added

No new or updated IAM permissions are required for this change.

Description of how you validated changes

  • Updated integration tests to include Windows Server Core 2022 image
  • Executed updated integration test to validate the configuration and updated test snapshots
  • Existing unit tests continue to pass

Checklist


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

@github-actions github-actions bot added the p2 label Aug 5, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team August 5, 2025 11:04
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 5, 2025
@mrgrain mrgrain changed the title feat(aws-codebuild): add support for Windows Server Core 2022 image fix(aws-codebuild): support Windows Server Core 2022 image with on-demand capacity Aug 5, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@mrgrain mrgrain changed the title fix(aws-codebuild): support Windows Server Core 2022 image with on-demand capacity fix(codebuild): support Windows Server Core 2022 image with on-demand capacity Aug 5, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review August 5, 2025 11:09

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 5, 2025
new ImageTestStack(app, 'WinCore2019-3', WindowsBuildImage.WIN_SERVER_CORE_2019_BASE_3_0),
// Windows 2022 images are not supported for on-demand build projects
/* new ImageTestStack(app, 'WinCore2022-3', WindowsBuildImage.WIN_SERVER_CORE_2022_BASE_3_0), */
new ImageTestStack(app, 'WinCore2022-3', WindowsBuildImage.WIN_SERVER_CORE_2022_BASE_3_0),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an authoritative list for this? I'm thinking about how we maintain this list going forward when new versions are added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an API that can be queried. It doesn't contain this split of fleet vs on-demand that this PR is removing. But then again, I'm not sure why that split existed in the first place.

codebuild:ListCuratedEnvironmentImages API command

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Not a blocker for this PR] Do you think there is value in documenting this? i.e. which API to query when we want to update the list.

@vishaalmehrishi vishaalmehrishi self-assigned this Aug 5, 2025
@mergify
Copy link
Contributor

mergify bot commented Aug 5, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Aug 5, 2025

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 29cf2d6
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit a595884 into main Aug 5, 2025
20 checks passed
@mergify mergify bot deleted the mrgrain/feat/aws-codebuild/windows-core-2022-support branch August 5, 2025 15:10
@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2 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.

3 participants