2020-08-15 | By Stanisław Szymański | In Code

How to write quality code in Ansible?

More play, less book. Ask about DevOps way of automation, Ansible will pop up, sure thing. It has its bright sides, and ones that aren't as bright, but that's not what we're touching today - In this article, I will try to explain the principles of Ansible role building, that you can easily introduce in practice, to build elegant, elastic, easy to use and troubleshoot code. A real joy to maintain. I do also want this article to be understandable and simple - so that you won't need 10 years of experience, nor a Senior job title, to reap the benefits and become better at coding. When I started…

Continue reading

2020-10-04 | By Kamil Szczygieł | In Code

What are the common things to watch out for with Terraform?

Delivering high-quality Terraform code is something we are proud of doing at sysdogs on our daily basis. Through the past years, we have gained a lot of knowledge and experience doing that for a variety of customers all over the world, from a variety of industries, trying to do our best to support other teams with best-quality infrastructures. This article's intention is to be a comprehensive list of bullet points, pinning things that should be avoided. This is a completely blameless post though, try to keep it as a checklist of things you should keep in mind while writing Terraform code. Use…

Continue reading

2020-10-12 | By Kamil Szczygieł | In Code

How to structure Terraform code for scale?

Terraform is one of the most popular tools to describe infrastructure as code. Being able to incorporate typical software development patterns into infrastructure results in better predictability, higher quality, and lowers the chance of a human error. You can implement continuous integration pipelines that will ensure that the infrastructure code is properly structured, follows all coding guidelines and security compliance requirements in your organization. To go even further, you can develop unit tests to increase the chance of finding an error before it will be applied to the real…

Continue reading

2020-10-19 | By Kamil Szczygieł | In Code

Are there any Terraform tools worth using?

Testing your code, adherence to agreed standards, and verification of compliance towards security guidelines, is crucial for building high-quality infrastructures. You should apply these principles to infrastructure code, to keep it predictable and reliable. In this article, we will go through tools for continuous integration and local development that we, at sysdogs, use daily, and we highly recommend you to incorporate them into your workflow. Continuous Integration Continuous Integration is an essential part of code development. Terraform is not a special citizen - it should be validated…

Continue reading