What is infrastructure code specifically? It depends highly on your particular infrastructure setup.
In the simplest case, it might be just a bunch of shell scripts and component-specific configuration files (Nginx configuration, cron jobs, and so on) stored in source control. Inside these shell scripts, you specify exact steps computer needs to take to achieve the state you need:
- Copy this file to that folder.
- Replace all occurrences of ADDRESS with mysite.com.
- Restart the Nginx service.
- Send an e-mail about successful deployment.
This is what we call procedural programming. It's not bad. For example, build steps of Continuous Integration tools such as Jenkins that are a perfect ...