Infrastructure as Code – best practices and troubleshooting
Let us start by discussing some general IaC best practices that can apply to various tools and platforms.
General IaC best practices
There are some common threads that we have already touched upon here, but it is essential to bring them up again as they are important:
- Version control: Make sure you use a version control system such as Git or one of the other available systems such as Mercurial, Subversion, or Azure DevOps Server, which was previously known as Team Foundation Server (TFS), to name a few of the more common ones, to store and manage your infrastructure code.
The odds of you, either personally or within the business, already using version control for your other projects is extremely high if you are taking steps to both define and deploy your infrastructure in and as code. This means that you have experience with version control and access to the tools, processes, and procedures to maintain...