Creating work pool through CI/CD process: We are ...
# ask-community
r
Creating work pool through CI/CD process: We are using PrefectCloud with Worker Running on ECS Task, and based on the configuration in Deployment it is creating Both flows and infra is written in AWS CDK in the same mono repo and we have plan to deploy this through git hub actions. I understand I can create work-pool through prefect work-pool create CLI however Is it possible to run this through CI/CD where it will only create if the work pool does not exist or update it there is any changes to the work-pool? Currently if I use prefect work-pool name it would then throw error if the work-pool exist. While I could use prefect work-pool ls then read the output programatically and only create if this does not exist, are there any easier way I am missing I should consider when if I want to create work-pool also automatically part of build and deployment? Or possibly I am missing something basic here? Or keen to know if people Automate creation of work pool or that is something one off created through UI, as flow usually changes more compare to work pool on prefect cloud.