aws-codebuild-docker-images icon indicating copy to clipboard operation
aws-codebuild-docker-images copied to clipboard

Why are Amazon Linux 2023 images called amazonlinux2?

Open dennisvang opened this issue 1 year ago • 4 comments

According to the docs the latest x84_64 image identifier for Amazon Linux 2023 is aws/codebuild/amazonlinux2-x86_64-standard:5.0:

screenshot of docs, in case they are updated later

Take special note of the amazonlinux2 in the identifier for the AL 2023 image.

Despite it being called amazonlinux2, the image [amazonlinux2-x86_64-standard:5.0](https://github.com/aws/aws-codebuild-docker-images/blob/master/al2/x86_64/standard/5.0) does indeed point to an Amazon Linux 2023 image:

https://github.com/aws/aws-codebuild-docker-images/blob/9fcc604fde570fa9ede9dfcfb1ab4c7ac093ca36/al2/x86_64/standard/5.0/Dockerfile#L12

This is quite confusing, especially when selecting an image in the codebuild console, because the option name suggests amazon linux 2, but it's actually an AL2023 image:

screenshot of codebuild console showing confusing names

dennisvang avatar Jun 12 '24 11:06 dennisvang

Yet more idiocy. They have no idea how to explain anything to their users, and naming things like this doesn't help one bit. Not a single mention of this naming strategy anywhere they are used, nor in the Blog post mentioning the availability of AL2023 on Lambda.

dailytabs avatar Aug 12 '24 04:08 dailytabs

Came here after today's emails from AWS:

Starting on September 4, 2024, AWS CodeBuild will upgrade its fleet of build hosts to use Amazon Linux 2023 (AL2023) from Amazon Linux 2 (AL2) [1]. If your builds rely on AL2 as the underlying operating system, you will need to update your buildspec and any custom images to work with the AL2023. However, if you have already upgraded your buildspec or any custom images you can disregard the rest of this message.

Seeing amazonlinux2 in several of our production buildspecs got me worried, but as pointed out, it looks like we've already migrated to AL2023. Very strange naming choices.

onejgordon avatar Aug 29 '24 13:08 onejgordon

I was also bitten by this naming inconsistency please add better documentation or warning in the UI

notAmine avatar Sep 18 '24 11:09 notAmine

+1 here

yjwx18 avatar Sep 30 '24 04:09 yjwx18

+1 got confused and had to review config for a bit of time

paulo-pertierra avatar Oct 24 '24 15:10 paulo-pertierra

https://docs.aws.amazon.com/codebuild/latest/userguide/ec2-compute-images.html

On November 22nd, 2024, the aliases for Linux-based standard runtime images were updated from amazonlinux2 to amazonlinux. No manual update is required as the previous aliases are still valid.

mswilson avatar Feb 07 '25 20:02 mswilson

Thank you for reporting this issue. We've fixed the naming of our images and ECR repos. We will continue to accept the old incorrect naming.

  • https://docs.aws.amazon.com/codebuild/latest/userguide/ec2-compute-images.html
  • https://gallery.ecr.aws/codebuild/amazonlinux-x86_64-standard
  • https://gallery.ecr.aws/codebuild/amazonlinux-aarch64-standard

jonnysooter avatar Feb 07 '25 22:02 jonnysooter