Robin
12/05/2023, 4:58 PMFlow run could not be submitted to infrastructure: TaskFailedToStart - CannotPullContainerError: pull image manifest has been retried 1 time(s): failed to resolve ref <http://docker.io/privaterepo/prefect-ecs-test:test|docker.io/privaterepo/prefect-ecs-test:test>: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
With the following code:
awesome_flow.deploy(
name=deployment_name,
work_pool_name="my-pool",
image=DeploymentImage(
name="privaterepo/prefect-ecs-test",
tag="test",
dockerfile="Dockerfile"
),
push=True
)
How can I provide the private access to the dockerhub (or any other registry like AWS ECR)?Alexander Azzam
12/05/2023, 5:04 PMRobin
12/05/2023, 5:09 PMalex
12/05/2023, 5:15 PMdocker login
will work in the large majority of cases.Robin
12/05/2023, 5:38 PMRobin
12/05/2023, 5:53 PMAutomatic infrastructure provisioning for ECS push work pools
?alex
12/05/2023, 5:54 PMRobin
12/05/2023, 5:54 PMbase-job-template
?alex
12/05/2023, 6:01 PMtask_definition
section of your base job template.Robin
12/05/2023, 6:05 PMRobin
12/06/2023, 8:06 AMrepositoryCredentials
to the task definition, but that errs with the error message, that an executionRoleArn
must be provided and those related IAM roles.
Hence, it seems easier to just set everything up properly with e.g. pulumi directly.