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
asked a year ago114 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions