AWS ECR
Authentication options
Option 1: IAM User with ECR permissions
Create the IAM user
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadECRRepository",
"Effect": "Allow",
"Action": [
"ecr:DescribeImageScanFindings",
"ecr:GetLifecyclePolicyPreview",
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:DescribeImages",
"ecr:DescribeRepositories",
"ecr:ListTagsForResource",
"ecr:ListImages",
"ecr:BatchCheckLayerAvailability",
"ecr:GetRepositoryPolicy",
"ecr:GetLifecyclePolicy"
],
"Resource": "arn:aws:ecr:<REGION>:<ACCOUNT_ID>:repository/<REPOSITORY>"
},
{
"Sid": "GetECRAuthToken",
"Effect": "Allow",
"Action": "ecr:GetAuthorizationToken",
"Resource": "*"
}
]
}Add credentials to Valohai
Option 2: Instance Role
Update the worker role
Add credentials to Valohai
Use the private image
Last updated
Was this helpful?
