Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codebuild: Usage of unsupported default docker image aws/codebuild/standard:5.0. #24609

Closed
niraj-khandelwal opened this issue Mar 14, 2023 · 7 comments
Labels
@aws-cdk/aws-codebuild Related to AWS CodeBuild closing-soon This issue will automatically close in 4 days unless further comments are made. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@niraj-khandelwal
Copy link

Describe the bug

Received a AWS Notification -

We are reaching out to you because you ran a build using the Ubuntu standard 5.0 [1] Docker Image, Amazon Linux 2 ARM standard 1.0 [2], or Amazon Linux 2 standard 3.0 [3] in the last 30 days. Starting March 30, 2023, AWS CodeBuild will be moving these images to an unsupported status and they will not be cached on the build hosts anymore.

You may continue using these images for your builds, but you will notice an increase in provisioning latency after March 30, 2023.
These images will also not be getting any new updates. We recommend updating your Build Projects to use the latest build images in order to get the latest language runtimes and tools. For more information on how to do this you can follow 'Docker images provided by CodeBuild' [4].

Upon checking, we have identified that CDK Codecuild project is using Docker Image: aws/codebuild/standard:5.0

Expected Behavior

CDK Codebuild project should use supported docker image

Current Behavior

CDK Codecuild project is using Docker Image: aws/codebuild/standard:5.0
This will be deprecated soon

Reproduction Steps

selfupdate and PipelineBuildSynthCdkBuild codebuild is using unsupported docker image

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.50.0

Framework Version

No response

Node.js Version

NA

OS

Linux

Language

Python

Language Version

No response

Other information

No response

@niraj-khandelwal niraj-khandelwal added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 14, 2023
@github-actions github-actions bot added the @aws-cdk/aws-codebuild Related to AWS CodeBuild label Mar 14, 2023
@pahud pahud changed the title (CDK): (Usage of unsupported default docker image aws/codebuild/standard:5.0. ) codebuild: Usage of unsupported default docker image aws/codebuild/standard:5.0. Mar 14, 2023
@pahud
Copy link
Contributor

pahud commented Mar 14, 2023

Hi

If you provision codebuild project with aws-codebuild, the default build image should be LinuxBuildImage.STANDARD_1_0 if unspecified and you can opt in STANDARD_6_0 in props.environment.buildImage.

this.buildImage = (props.environment && props.environment.buildImage) || LinuxBuildImage.STANDARD_1_0;

And if you are using cdk pipelines, according to #24544 the default image should be STANDARD_6 which will be available in next CDK release(v2.69.0)

Let me know if it helps you clarify the issue.

@pahud pahud added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 and removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Mar 14, 2023
@github-actions
Copy link

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Mar 16, 2023
@niraj-khandelwal
Copy link
Author

Sorry for delay in response

I updated cdk version to 2.69.0. It fixed codebuild project docker image to aws/codebuild/standard:6.0.

Closing this issue

@niraj-khandelwal
Copy link
Author

I updated cdk version to 2.69.0. It fixed codebuild project docker image to aws/codebuild/standard:6.0.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@mfittko
Copy link

mfittko commented Apr 14, 2023

@niraj-khandelwal Does that mean, that building on ARM based images will no longer be supported and we can move our production workloads away from graviton2 as well (or build/deploy using third party)???

@niraj-khandelwal
Copy link
Author

@mfittko - not sure, if I understood your requirement clearly.
I have created CDK pipeline with OOB features and so earlier version of CDK were using unsupported Docker image. Updating CDK version fix this and it also updated to supported version of Docker Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-codebuild Related to AWS CodeBuild closing-soon This issue will automatically close in 4 days unless further comments are made. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

3 participants