Yes, it is possible to create an automation based ...
# ask-community
m
Yes, it is possible to create an automation based on deployment name. Deployments in Prefect must be defined in static files. You can define and run flows interactively, but deployments require that your flow definition be in a known file. This file can be located on a remote filesystem in certain setups. Because the deployment has no schedule or triggering automation, you will need to use the UI or API to create runs for it. You can use the Prefect CLI to run the deployment. You can also add a schedule and additional metadata to the deployment. The
serve
method on flows exposes many options for your deployment. Some of these options include: - `cron`: a keyword that allows you to set a cron string schedule for the deployment. - `tags`: a keyword that allows you to tag this deployment and its runs for bookkeeping and filtering purposes. - `description`: a keyword that allows you to document what this deployment does. - `version`: a keyword that allows you to track changes to your deployment. For more details, you can check out the Prefect documentation on deployments and automations.
🧐 2