[codebuild] Handle CodeBuild "WINDOWS_SERVER_2019_CONTAINER" environment type for Windows Server 2019 Docker images #9484
Labels
@aws-cdk/aws-codebuild
Related to AWS CodeBuild
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p1
The CodeBuild documentation indicates that when using a Windows Server 2019 based Docker image the environment type should be
WINDOWS_SERVER_2019_CONTAINER
, otherwise when building there will be an error like:Currently BuildEnvironment doesn't support specifying the environment type, and IBuildImage supports only retrieving the environment type, not setting it.
Use Case
CDK users that have Windows Server 2019 based custom images which they retrieve with methods such as
WindowsBuildImage.fromDockerRegistry()
would end up with CodeBuild failures like the one indicated above, since the environment type would be set toWINDOWS_CONTAINER
rather than toWINDOWS_SERVER_2019_CONTAINER
.This is similar to some other issues such as:
LINUX_GPU_CONTAINER
environment type: CodeBuild "LINUX_GPU_CONTAINER" environment type #8408ARM_CONTAINER
environment type: fix(codebuild): ARM images have the wrong type and compute kind #5541Proposed Solution
As in the issues above we could create a new class of
IBuildImage
.This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: