Skip to main content

One post tagged with "iac"

View All Tags

Why I stopped thinking Infrastructure-as-Code tests were a waste of time

· 9 min read
Kamil Mrzygłód
Topaz maintainer & contributor

I've worked with multiple Infrastructure-as-Code (IaC) tools a lot for the last couple of years and if I were to choose one thing to be considered lacking, it would be a valid, bulletproof and proven testing framework or testing pattern. Personally, I find it a serious drawback when it comes to productionizing automated infrastructure scripts - I can write them and run them with ease, but if they're supposed to be part of SDLC (which I believe they should), they need to be maintainable end-to-end (which I believe they are not). Most people don't even bother with writing tests for IaC scripts because they rarely provide any value. As I see this, it's not because the tests themselves are worthless. It's rather the result of both the limitations of the toolset and bad practices built across the industry since the cloud platforms boom several years ago. This is what initially drove development of Topaz and is one of the fundamental problems it tries to solve. However, before Topaz is able to help, you need to change the way how you think about your infrastructure and testing it.

Star on GitHub