4 ms·
But my infrastructure is code! Can't you see how it's all in git?
by xnickb 2y ago
But my infrastructure is code! Can't you see how it's all in git?
- benterix 2y agoWhat's wrong with having your infrastructure as code and storing it in Git?
- sofixa 2y agoNothing. Even if it's objectively terrible (thousands of lines of templated YAML, or thousands of lines of spaghetti bash), being in Git as code is still better. At least you know what it is, how it evolved, and can start adding linting/tests.
- benterix 2y agoI manage large IaC repos and it's mostly HCL, well-structured and easy to work with. Where we have Kubernetes manifests, they're usually split into smaller files and don't cause any trouble as normally we usually don't deploy manifests directly.
- xnickb 2y agoYAML isn't code. Same as your reply, YAML has very little awareness of context.
- benterix 2y agoIn computer science, the word "code" has a very specific meaning, and markup languages definitely fit this definition.