terraform - dynamic disks
With the release of Terraform 0.12, one of the great, new features is dynamic blocks. I have been working on a Terraform module for our operations team to consume to build servers via a CI/CD pipeline and needed to allow them to provision an arbitary number of disks to each deployment. Below, we define the dynamic block within the module itself. We pass in a variable, called disks_to_provision, which is a list of maps....