diff options
-rw-r--r-- | examples/count/libvirt.tf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/count/libvirt.tf b/examples/count/libvirt.tf index a1911100..bab7b3fe 100644 --- a/examples/count/libvirt.tf +++ b/examples/count/libvirt.tf @@ -8,13 +8,13 @@ resource "libvirt_volume" "opensuse_leap" { } resource "libvirt_volume" "volume" { - name = "volume" + name = "volume-${count.index}" base_volume = "${libvirt_volume.opensuse_leap.id}" -# count = 4 + count = 4 } -resource "libvirt_domain" "terraform_test" { - name = "terraform_test" +resource "libvirt_domain" "domain" { + name = "domain-${count.index}" disk { volume_id = "${element(libvirt_volume.volume.*.id, count.index)}" } |