DEV Community

loading...
Last9

Managing infra code ⚙️🛠🧰

Prathamesh Sonpatki
Prathamesh Sonpatki is experienced web developer.
・1 min read

Do you care about the quality of your infra code?

A. As much as product code
B. Somewhat but mostly no
C. We create infra via UI

Let's discuss how do you manage Infra code! Feel free to share your thoughts in the comments section.

Discussion (5)

Collapse
manish profile image
Manish Sinha

Always infrastructure as code. So A

If DevOps/Infrastructure is not good enough then all the work you did on the product would not see its full potential. Having a reliable CI/CD pipeline which takes "just the right amount of time" is crucial in ensuring that you remain confident in your product code.

I initially started with UI based infra, but soon learned that infrastructure is not a separate thing, but part of the product, even if it is not shipped to the customer. Now I prefer YAML based infrastructure pipelines and proper reporting of tests, data and other assets.

Collapse
prathamesh profile image
Prathamesh Sonpatki Author

Great points Manish. I wonder if the resistance is also because of lack of good guidelines for building infra as code.

Collapse
dploeger profile image
Dennis Ploeger

Definitely A, but I'm in the DevOps consultancy team and we do a lot of infrastructure design. 😉

Collapse
prathamesh profile image
Prathamesh Sonpatki Author

Makes sense. Any particular practices you follow for managing the infra as code?

Collapse
dploeger profile image
Dennis Ploeger

We use Terraform and try to keep everything there. If that's not possible for some reason, we try to open issues so that it would be possible in the future and document the manual steps with a link to that issue.

Additionally, we heavily use Terraform modules, so that the "business logic" lies in the module and we only parametrize it in the different stage directories.