Infrastructure-as-code or IaC is the practice of using software tools like Terraform or AWS CDK to define cloud infrastructure in coded files that are then executed to create the defined resources. This enables a high level of transparency and ease of collaboration on building and maintaining cloud infrastructure because the code can be managed through source control systems like Git. Management of infrastructure using this model can also be automated through CI/CD pipelines.