Hey all, I'm trying to upgrade to prefect 3.0 and ...
# prefect-aws
v
Hey all, I'm trying to upgrade to prefect 3.0 and going through some issues, I have created ECS pool worker but it is throwing an error while creating the deployment.
ValueError: Either an image or remote storage location must be provided when deploying a deployment.
Here is how I'm creating the deployment. In the worker pool I have given image, vpc_id, task-defination, all the necessary details for the task.
Copy code
if __name__ == "__main__":

    taskdef_arn = f"arn:aws:ecs:us-west-2:{sys.argv[1]}:task-definition/{sys.argv[2]}"
    workflow.deploy(
        name="workflow-deploy",
        tags=['ECS-task'],
        work_pool_name="proto",
        job_variables=dict(task_definition_arn = taskdef_arn),
        schedules = [(CronSchedule(cron="0 0-23 * * *", timezone="UTC"))]
    )
Why do I have to provide an image, if I gave the infrastructure block which is now work_pool shouldn't that be sufficient.