aws ecr get-login에서 정책 부족으로 오류가 출력됨
하고 싶었던 일
AWS-CLI를 사용하여 Amazon ECR에 로그인하고 싶습니다.
전제
내 환경
- Windows10 Pro
- AWS CLI 설치됨
> aws --version
aws-cli/1.16.313 Python/3.7.2 Windows/10 botocore/1.13.49
사건
PS C:\Users\taketakekaho> aws ecr get-login --region ap-northeast-1 --profile <profile> --no-include-email
An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::XXXXXXXXXXXX:user/<profile> is not authorized to perform: ecr:GetAuthorizationToken on resource: *
어쩐지 액세스권적인 것이 없는 것 같고 에러가 나온다.
대처
이 AmazonEC2ContainerRegistryPowerUser라는 정책이 부족한 것 같다. 아래와 같이 부착한 소 해소했습니다.
라고 할까…
정보 찾는 중 우연히 읽은 클래스 메소드의 기술 블로그( [업데이트] AWS CLI v2에서 $ aws ecr get-login을 사용할 때의주의 사항 )에서 $aws ecr get-login 은 v1에서도 비추천이라는 것을 처음 알았다… 조심하자.
참고
내 환경
- Windows10 Pro
- AWS CLI 설치됨
> aws --version
aws-cli/1.16.313 Python/3.7.2 Windows/10 botocore/1.13.49
사건
PS C:\Users\taketakekaho> aws ecr get-login --region ap-northeast-1 --profile <profile> --no-include-email
An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::XXXXXXXXXXXX:user/<profile> is not authorized to perform: ecr:GetAuthorizationToken on resource: *
어쩐지 액세스권적인 것이 없는 것 같고 에러가 나온다.
대처
이 AmazonEC2ContainerRegistryPowerUser라는 정책이 부족한 것 같다. 아래와 같이 부착한 소 해소했습니다.
라고 할까…
정보 찾는 중 우연히 읽은 클래스 메소드의 기술 블로그( [업데이트] AWS CLI v2에서 $ aws ecr get-login을 사용할 때의주의 사항 )에서 $aws ecr get-login 은 v1에서도 비추천이라는 것을 처음 알았다… 조심하자.
참고
PS C:\Users\taketakekaho> aws ecr get-login --region ap-northeast-1 --profile <profile> --no-include-email
An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::XXXXXXXXXXXX:user/<profile> is not authorized to perform: ecr:GetAuthorizationToken on resource: *
이 AmazonEC2ContainerRegistryPowerUser라는 정책이 부족한 것 같다. 아래와 같이 부착한 소 해소했습니다.
라고 할까…
정보 찾는 중 우연히 읽은 클래스 메소드의 기술 블로그( [업데이트] AWS CLI v2에서 $ aws ecr get-login을 사용할 때의주의 사항 )에서 $aws ecr get-login 은 v1에서도 비추천이라는 것을 처음 알았다… 조심하자.
참고
Reference
이 문제에 관하여(aws ecr get-login에서 정책 부족으로 오류가 출력됨), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/taketakekaho/items/6b3ab23100e2731ce586텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)