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.

已提问 6 个月前373 查看次数
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"}'
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则