Cormac
12/14/2023, 2:35 PMprefect.cli.cloud
to provision my workpool:
def create_push_workpool():
# * Login
prefect.cli.cloud.login(key="<MY KEY GOES HERE>")
prefect.cli.cloud.confirm_logged_in()
# * Create work pool
work_pool.create(name="nde-iac-push-workpool", type="Ecs:push", base_job_template="confs/dev/push_workpool_job_template.json", paused=False)
return
However, the login call is failing with
AttributeError: 'PrefectTyper' object has no attribute 'console'
Would appreciate some help/guidance/pointers!