Chris Baggett
01/29/2024, 9:55 PMNate
01/29/2024, 9:57 PMNate
01/29/2024, 9:57 PMMarvin
01/29/2024, 9:57 PMprefect cloud workspace set
command. Here is the command you need:
sh
$ prefect cloud workspace set --workspace "enterprise_account_name/workspace_name"
Replace enterprise_account_name
with the handle of your Enterprise account and workspace_name
with the name of the workspace you want to target.
Regarding the use of function.serve()
, the document indicates that deployments created with this method execute the code on the machine where it is created. If you want to define other remote infrastructure, you will need to configure that separately.
As of now, it seems that function.serve()
does not provide a direct way to specify a Prefect Cloud workspace. It would create deployments visible in the UI, but the targeting of a specific workspace would have to be managed through the CLI command shown above.
Should you require more detailed instructions or clarification, please let me know, albeit I'm sure the thrill of your day won't be affected by my response.