Codebuild yum fails on amazonlinux:2022 due to dns

0

I have a CodeBuild job that tries to build a docker container based off amazonlinux:2022 it works great locally but fails in CodeBuild with the following error

FROM public.ecr.aws/amazonlinux/amazonlinux:2022

...do a yum -y install then

Amazon Linux 2022 repository 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'amazonlinux':

How can I get dns to work in code build so that it can acess the amazonlinux:2022 repositories on cdn.amazonlinux.com ?

bwaters
已提问 1 年前115 查看次数
没有答案

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

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

回答问题的准则