Switching Build Environment in AWS CodeBuild

0

I currently have a CodeBuild project from a CDK pipeline that uses the amazonlinux2-aarch64 image on ARM. I'm looking to switch to an Ubuntu-based image running x86_64 because the Amazon Linux images do not support the latest Node. However, when I update it in the CodeBuild console, I get this error,

AWS CodeBuild curated image aws/codebuild/standard:6.0 is not supported for projects with environment type ARM_CONTAINER and compute type BUILD_GENERAL1_SMALL.

I am assuming the environment type ARM_CONTAINER is the contention here, but I don't see any configuration that would allow me to change this. How do I update the image so I can switch to using the Ubuntu-based image? I checked "Edit" -> "Project configuration"/"Environment"/"Buildspec", none of them appears to have that configuration.

質問済み 7ヶ月前486ビュー
1回答
0

For anyone else stumbling upon this, it seems like the AWS console is just buggy. I ended up running this command in the Cloud Shell, which changed the compute type.

aws codebuild update-project --name WebsiteDeploymentCDKPipelin-bSL5HmFVh1nx --environment '{"type": "LINUX_CONTAINER", "computeType": "BUILD_GENERAL1_SMALL", "image": "aws/codebuild/standard:6.0"}'
回答済み 7ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ