Automating infrastructure with Terraform templates