https://prefect.io logo
#prefect-ui
Title
# prefect-ui
s

Sang Young Noh

06/13/2022, 3:03 PM
Hi all. I know that only a single workspace is allowed on prefect cloud 2 beta, but when it is out of beta, how easy would it be to copy over a existing set of deployments/flows/work-queues from one workspace to another? Is it expected to be a simple CLI command?
k

Kevin Kho

06/13/2022, 3:55 PM
Are you trying to copy over the history? You’d need to re-create those deployments and work queues, but you can prepare a script that does that. Some things like storage require interactivity when being created which makes things hard. We will have non-interactive interfaces for that kind of stuff
s

Sang Young Noh

06/13/2022, 3:59 PM
As the making of multiple workspaces is not available yet, its hard to point a finger on what I would like, but basically anything that is minimal fuss moving from a test to a prod workspace without having to write new code was what I thought. So you are saying that on the cli, we switch the workspace, and then redeploy and it will be created? Would it be possible to elaborate what you mean by the interactivity when it comes to storage? For example, at the moment I have a local storage to store my flows - this would have to be remade in the new workspace as well?
k

Kevin Kho

06/13/2022, 4:28 PM
When you do
prefect storage create
, it asks for options and you have to type things out. We’ll provide a path that you can just specify in one command. If you want to deploy from test to prod, I think you really need to redeploy yes. Settings will make it easier because you can configure multiple profiles. Yes you will need to recreate the storage from test to prod, especially because storage typically changes to have environment isolation.
🙌 1
So it could be something like: • write flow • deploy to staging • change profile • deploy to prod
🙌 1
s

Sang Young Noh

06/13/2022, 4:30 PM
Hmm ok I see. Thank you for the clarification. From what i sounds, it seems a couple of command lines is what is necessary
4 Views