<@ULVA73B9P> I'm pretty sure you can't, but can yo...
# ask-marvin
g
@Marvin I'm pretty sure you can't, but can you update a deployment name after the deployment has already been created? I see you can't do it through the UI
m
I searched through the documentation for you, and while I found information on how to deploy flows using the CLI, including providing overrides for individual deployments, I didn't find any clear guidance on whether or not you can update a deployment name after it has already been created. It appears that deployment names are used as unique identifiers in Prefect, which typically suggests that they are not meant to be changed post-creation. If the documentation doesn't explicitly state that you can update a deployment name, it's likely that this functionality is not supported. If you really need to rename a deployment, you might have to consider creating a new deployment with the desired name and deleting the old one, though this approach would not preserve the history of the previous deployment. It's always good practice to plan deployment names carefully to avoid the need to change them later.
n
I would just recreate it
you might be able to, but I wouldn't 🙂
👍 1
g
I have kind of a weird business case where it would be helpful to be able to, to reflect certain changes. Alas, back to the drawing board.
n
can you explain the situation? perhaps there's a different way there
g
You know I just spent maybe 10 minutes typing it up and it's a lot of overhead to arrive at the conclusion which was me typing "It's probably a good thing that I can't change deployment names anyway".
n
🙂
haha yeah I think there's a lot of versioning you can do in CI that would be what I'd reach for first, but that type of stuff feels very org-specific
g
Oh it's definitely org-specific, haha! Thank you for chatting about it though.
n
sure thing!