Disk support using blocks #1198
Labels
resource/qemu
Issue or PR related to Qemu resource
type/question
Issue needs no code to be fixed, only a description on how to fix it yourself
Hi,
I have the following architecture:
By design the module looks like:
The first disk will always be the cloned one. The other disks will always be attached at other scsi ports.
In order to achieve this, a dynamic block of "scsiX" needs to be used, however Terraform has the limitation that dynamic blocks can't have a dynamic name.
Do you have any suggestions to how to overcome this limitation?
My opinion is these should become resources rather than blocks. Blocks are not consistently supported at language level in Terraform. You can't have blocks with dynamic names. You can't have empty blocks due to having required parameters in them. It's just not very well supported.
Will be happy to hear other opinions or suggestions.
The text was updated successfully, but these errors were encountered: