<@ULVA73B9P> Is there a way to modify the "pull" k...
# ask-community
k
@Marvin Is there a way to modify the "pull" key in a deployment yaml via the bash command? For example, I can set parameters with --params, work pools with --pool, but I can't set the pull key like this. This is requiring me to have to run prefect deploy to build the yaml, and then deploy again after manually editing the prefect.yaml
m
Currently, there isn't a direct command-line option in Prefect to modify the "pull" key in the deployment YAML file via bash. The "pull" key in
prefect.yaml
specifies how Prefect pulls your deployment in remote execution environments, and it is defined as a list of steps executed in sequence. The steps in the "pull" section are not run during the deployment process but are templated and resolved at runtime. However, you can manually edit the YAML file to adjust the "pull" section as needed. This is a common practice when you have specific deployment instructions that need to be customized per deployment. For more information on how the deployment YAML is structured, you can refer to the Prefect documentation on deployment YAML. If you are looking for automation or scripting solutions, you might consider using a script to programmatically edit the YAML file before running the deployment command. This could be done with a tool like
yq
for YAML processing in bash or a custom Python script. If you have further questions or need more detailed assistance, feel free to ask!
👎 1