CircleCI-Public / circleci-server-windows-image-builder

This is an example of how to build a new Windows VM image to be used with CircleCI Server.
8 stars 21 forks source link

Update config to use ECS_Optimized AMIs instead of missing ContainersLatest AMIs #24

Closed nanophate closed 3 months ago

nanophate commented 1 year ago

Description

update Windows_Server-2019-English-Full-ContainersLatest-* to Windows_Server-2019-English-Full-ECS_Optimized-*. The change is due to the previous AMI becoming private and thus inaccessible.

The previous AMI was not found when running the following command:

aws ec2 describe-images \ 
    --owners amazon \
    --filters "Name=name,Values=Windows_Server-2019-English-Full-ContainersLatest-*" \
    --query "sort_by(Images,&Name)[].[Name,ImageId,OwnerId]"

This suggests that AWS has made the image inaccessbile, which is essential for building windows images for CircleCI Server.

The proposed AMI, Windows_Server-2019-English-Full-ECS_Optimized-*, is available and appears to have Docker installed, making it a suitable replacement.

All ECS-optimized AMI variants produced after August will be migrating from Docker EE (Mirantis) to Docker CE (Moby project). https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_windows_AMI.html

The reason for the removal of the previous AMI is unknown, but it could be related to the following AWS update:

2023.10.11 Previous versions of Amazon-published Windows AMIs dated July 12th, 2023 and earlier were made private. https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-ami-version-history.html

Todo