본문 바로가기
CLOUD/AWS

AWS ECR push retrying 문제

by Rainbound-IT 2022. 12. 19.
반응형

푸시를 잘하고 있었는데

 

테스트하려고 다른 계정에서 repo 생성하여 푸시하려니 다음과 같이 에러가 발생하였다.

 

계속 retrying을 한다.

 

이는 권한이 없어서 나타나는 원인

 

 

해당 repo 에 작업-권한 을 들어가거나 repo에 들어간뒤 왼쪽에 위와같은 화면에서 permissions 를 클릭한다.

 

오른쪽에 보면 정책 json 이 있는데 클릭

 

{
  "Version": "2008-10-17",
  "Statement": [
    {
      "Sid": "Statement1",
      "Effect": "Allow",
      "Principal": {
        "AWS": "*"
      },
      "Action": [
        "ecr:BatchCheckLayerAvailability",
        "ecr:BatchGetImage",
        "ecr:CompleteLayerUpload",
        "ecr:GetDownloadUrlForLayer",
        "ecr:InitiateLayerUpload",
        "ecr:PutImage",
        "ecr:UploadLayerPart"
      ]
    }
  ]
}

 

 

 

principal 부분에 원하는 role만 접근가능하게 하여 보안을 강화 할수 있으나 난 개인적으로 사용하기 때문에 "*"을 입력하였다. 

혹시 운영하시는 분이라면 꼭 이걸 설정하시길 바랍니다.

 

설정을 하고 저장을 한뒤 push하면 제대로 올라가는것을 보실수 있습니다.

 

Reference

https://stackoverflow.com/questions/70828205/pushing-an-image-to-ecr-getting-retrying-in-seconds

 

Pushing an image to ECR, getting "Retrying in ... seconds"

I recently created a new repository in AWS ECR, and I'm attempting to push an image. I'm copy/pasting the directions provided via the "View push commands" button on the repository page. I...

stackoverflow.com

 

 

반응형

댓글