At Shippable, we love using Terraform. From using it sparsely just a few years back, we've now reached a stage where every single component of all our environments is managed using Terraform. Hard to believe? Here's all our infrastructure code to prove it ! We've also published a few posts earlier which outline our process for managing infrastructure.Some of these are,- Provisioning AWS Infrastructure Using Terraform- Provisioniong AWS VPC With Terraform- Provision AWS EC2 Virtual Machines Using TerraformSo why a new post? Terraform now supports Modules that provide an easy way to break down different parts of the infrastructure into reusable components. They also provide a Registry where users can publish their modules. Users can download "verified" modules from the registry and use them directly as building blocks for their infrastructure. We decided to give this a try by creating a complete, production-ready infrastructure(similar to what we use). The objectives of the tutorial are to- Logically break down infrastructure components into modules- Reuse and chain modules to create component decoupling- Drive all configuration from one file