Is there any way to duplicate/clone a deployment o...
# ask-community
j
Is there any way to duplicate/clone a deployment outside of using YAML deployments and copy/pasting?
n
I think you could also copy and paste a python deployment definition but what do you have in mind? ie whats the moviation?
j
I have dozens of deployments that are identical except for some of the variables. I've created an API to create these deployments then a simple interface to manage it. But I'd love to be able to just check a box in the UI and duplicate then update the variables.
Perhaps I'm an edge case but I can see other situations where I'd want to use the same deployment code / flow but targeting a different entity.
j
There’s a duplicate deployment button in the ui
It’s part of the deployment dropdown menu
j
Is that a cloud only feature?
j
Good question. It’s a while since I’ve been in the open source UI but I think it’s there.
j
image.png
j
Oh sorry - yeah that looks like it’s maybe cloud only? I don’t think it needs to be though if you want to open an enhancement request?
n
yep it appears to be cloud-only, +1 that we could/should make this available in OSS
🙌 1
j
hiding all the good stuff 😄
will do (put a request out)
🙏 2
Thank you!
n
sounds good! one thing i'd suggest on this > I have dozens of deployments that are identical except for some of the variables. I've created an API to create these deployments then a simple interface to manage it. But I'd love to be able to just check a box in the UI and duplicate then update the variables. is that you can usually get creative with flow run parameters so that the same flow logic can be applied to different inputs (ie 1 deployment, but many accepted parameter sets), depending on what exactly what you mean by > for some of the variables though its certainly possible you just want many deployments bc you want specific defaults for each deployment which would make sense, just mentioning in case its helpful for example https://prefect-community.slack.com/archives/C04DZJC94DC/p1740173222275169?thread_ts=1740172382.038179&cid=C04DZJC94DC
☝️ 1
j
Yeah I thought about revisiting that approach. I primarily did it this way for observability but I also knew nothing about prefect at the time. It also better represented how my Fivetran instance works, which is what I'm migrating from. Thanks for the sharing the thread, I'll take a look.
👍 1