Eric Mauser
07/20/2021, 10:04 PMKevin Kho
ECSRun
Run Configuration. This takes in an image . Just make sure that it can pull the image.
3. Make sure you have a role with the appropriate permissions. You can pass this to the ECSRun
also.
4. Queue a Flow Run and it should be picked up by the ECS agent (just make sure labels are the same), and then start the ECS task.Kevin Kho
Zach Schumacher
07/20/2021, 10:16 PMecs-dev
you must also register your flow with the label ecs-dev
Eric Mauser
07/21/2021, 3:39 PMEric Mauser
07/26/2021, 4:01 PM[2021-07-26 08:12:48-0700] INFO - prefect.Docker | Pushing image to the registry...
Traceback (most recent call last):
File "flow.py", line 18, in <module>
flow.register('eqtble_test')
File "/Users/emauser/.pyenv/versions/prefect_ecs_venv/lib/python3.7/site-packages/prefect/core/flow.py", line 1734, in register
idempotency_key=idempotency_key,
File "/Users/emauser/.pyenv/versions/prefect_ecs_venv/lib/python3.7/site-packages/prefect/client/client.py", line 1105, in register
serialized_flow = flow.serialize(build=build) # type: Any
File "/Users/emauser/.pyenv/versions/prefect_ecs_venv/lib/python3.7/site-packages/prefect/core/flow.py", line 1497, in serialize
storage = self.storage.build() # type: Optional[Storage]
File "/Users/emauser/.pyenv/versions/prefect_ecs_venv/lib/python3.7/site-packages/prefect/storage/docker.py", line 303, in build
self._build_image(push=push)
File "/Users/emauser/.pyenv/versions/prefect_ecs_venv/lib/python3.7/site-packages/prefect/storage/docker.py", line 377, in _build_image
self.push_image(full_name, self.image_tag)
File "/Users/emauser/.pyenv/versions/prefect_ecs_venv/lib/python3.7/site-packages/prefect/storage/docker.py", line 585, in push_image
raise InterruptedError(line.get("error"))
InterruptedError: no basic auth credentials
Kevin Kho
aws ecr get-login-password --region <REGION> | docker login -- username AWS --password-stdin <ACCOUNT>.dkr.ecr.<REGION>.<http://amazonaws.com|amazonaws.com>
to get the log-in to push.Eric Mauser
07/26/2021, 6:57 PMaws ecr get-login-password --region <REGION> | docker login --username AWS --password-stdin <ACCOUNT>.dkr.ecr.<REGION>.<http://amazonaws.com|amazonaws.com>
Kevin Kho
Kevin Kho