https://prefect.io logo
Title
r

Rajvir Jhawar

07/29/2022, 10:14 AM
Question here about the new deployment mechanism: Can I load a storage block from file instead of having to query prefect? For instance: prefect deployment build -sb <point_to_file> I want to remove any failure condition related to networking when using a CI/CD pipeline.
โœ… 1
I also a little lost here the changes for deployment, I feel like it gone too much in favour of UI/CLI and is ignoring the code/pythonic way of setting things up. The concept of storage block also get confusing because even the UI doesn't implicitly classify anything as a storage block. There is no filter for "storage block" What if i create Local File System storage block. Is that a valid input for deployment build? I tried it using the format (type/<block name>) it couldn't find it.
d

Dominik Wagner

07/29/2022, 10:45 AM
I also a little lost here the changes for deployment, I feel like it gone too much in favour of UI/CLI and is ignoring the code/pythonic way of setting things up.
Also struggling with the same issue, according to this I guess itโ€™s still possible to configure your deployments in code, but itโ€™s missing how to actually apply them ๐Ÿ˜•
a

Anna Geller

07/29/2022, 11:59 AM
thanks for feedback to both of you - creating storage and infra blocks from code is absolutely possible and I started to prepare more content on that - example https://github.com/anna-geller/prefect-deployment-patterns/blob/main/k8s/customizations/append_commands.py
๐Ÿ™Œ 1
:thank-you: 1
๐Ÿ‘€ 1