Scott Aefsky
03/29/2022, 7:38 PMtask_definition_path
, and running into an issue. My flows run on different ECR images, so I don't want to specify the image in the Task Definition file. However, when I leave it out, and specify it in the constructor:
run_config = ECS_RUN(image=ECR_IMAGE, task_definition_path='s3://<path>'
I get an error that container.image should not be empty. My task definition file that I'd like to use is:
networkMode: awsvpc
cpu: 1024
memory: 2048
containerDefinitions:
- name: flow
logConfiguration:
logDriver: awslogs
options:
awslogs-group: test_prefect_log_group
awslogs-region: us-east-1
awslogs-stream-prefix: ecs-prefect
awslogs-create-group: "True"
Is there any way to use a Task Definition file without specifying an image? Or is there another/better way to make sure my ECS tasks get logged? Thanks for any help.Kevin Kho
Scott Aefsky
03/29/2022, 7:42 PMKevin Kho
Scott Aefsky
03/29/2022, 7:45 PMScott Aefsky
03/29/2022, 7:46 PMAn error occurred (ClientException) when calling the RegisterTaskDefinition operation: Container.image should not be null or empty.
Kevin Kho
Scott Aefsky
03/29/2022, 7:46 PMKevin Kho
Scott Aefsky
03/29/2022, 7:46 PM