I was hoping to programmatically define my work po...
# prefect-cloud
j
I was hoping to programmatically define my work pools so we don't need to update them in the UI. But it looks like the only options are the UI or the API. The CLI can create work pools but not edit their configuration, if I'm reading this right. Is it more typical to just define these via the UI instead?
1
Specifically I'm trying to make 2
cloud-run:push
work pools, one for staging and one for prod. Doing it programmatically would help me make sure the 2 are defined the same way, just with different GCP projects and accounts.
s
Hi @John Lemmon, we are actively working on this! You can follow status updates on this issue: Allow configuration of a work pool's base job template via the CLI tl;dr a pull request is up for review to allow users to create work pools with custom base job templates, e.g.
Copy code
prefect work-pool create my-k8s-pool --type kubernetes
one for each type. This will be followed by a pull request to allow for updates/edits via the CLI :)
🙌 2