Question here about the new deployment mechanism: ...
# ask-community
r
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
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
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
πŸ™ 1
πŸ‘€ 1