Ian Thomas
12/05/2023, 8:32 PM$ prefect deployment apply prefect.yaml
I get the following error:
'prefect.yaml' did not conform to deployment spec: AttributeError("'NoneType' object has no attribute 'name'")
Contents of the prefect.yaml.
name: a_flow
prefect-version: 2.14.9
pull:
- prefect.deployments.steps.set_working_directory:
directory: /app
definitions:
tags: &common_tags
- development
- eks
work_pool: &common_work_pool
name: development-kubernetes
job_variables:
image: "{{ $PREFECT_IMAGE_NAME }}:$CIRCLE_SHA1"
deployments:
- name: default
entrypoint: main.py:run_flow
path: /app
tags: *common_tags
version: "{{ $CIRCLE_SHA1 }}"
work_pool_name: *common_work_pool
alex
12/05/2023, 8:37 PMprefect deploy
CLI command. You can deploy your flow by running prefect deploy
in the same directory as your file if you rename it to prefect.yaml
.Ian Thomas
12/05/2023, 8:43 PM$ prefect deployment apply prefect.yaml
deprecated or no longer supported?alex
12/05/2023, 8:45 PMprefect deploy
over prefect deployment apply
because you can customize your pull steps and deploy multiple flows in a single command with prefect deploy
.Ian Thomas
12/05/2023, 8:48 PM$ prefect --no-prompt deploy
alex
12/05/2023, 8:49 PMIan Thomas
12/05/2023, 8:56 PMalex
12/05/2023, 9:25 PMjob_variables
section of a deployment config in prefect.yaml
.Ian Thomas
12/05/2023, 9:32 PM