From e90ebeb14f79f0f79e351f80ccb6f4b27186f4a3 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Sun, 13 Mar 2016 00:05:19 +0100 Subject: fix count example --- examples/count/libvirt.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/count') 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)}" } -- cgit v1.2.3