Docker ECR not authorized
๋ฌธ์ ์
ํด๋น ์ ์ ์๊ฒ ๊ถํ์ด ๋ถ์ฌ๋์ง ์์ CLI์์์ ECR ์ฌ์ฉ ๋ถ๊ฐ๋ฅํ์ฌ ์๋ฌ ๋ฉ์ธ์ง ์ถ๋ ฅ
Error: User: {user} is not authorized to perform: ecr:DescribeRepositories on resource: {resource_path} because no identity-based policy allows the ecr:DescribeRepositories action
์๋ฃจ์
IAM > ์ฌ์ฉ์ > ์ ์ฑ ์์ฑ
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ListImagesInRepository",
"Effect": "Allow",
"Action": [
"ecr:ListImages"
],
"Resource": {resource_path}
},
{
"Sid": "GetAuthorizationToken",
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken"
],
"Resource": "*"
},
{
"Sid": "ManageRepositoryContents",
"Effect": "Allow",
"Action": [
"ecr:GetAuthorizationToken",
"ecr:BatchCheckLayerAvailability",
"ecr:GetDownloadUrlForLayer",
"ecr:GetRepositoryPolicy",
"ecr:DescribeRepositories",
"ecr:ListImages",
"ecr:DescribeImages",
"ecr:BatchGetImage",
"ecr:InitiateLayerUpload",
"ecr:UploadLayerPart",
"ecr:CompleteLayerUpload",
"ecr:PutImage",
"ecr:CreateRepository"
],
"Resource": {resource_path}
}
]
}
Last updated