Skip to content

Commit

Permalink
Changed name within google_compute_disk on line 3162 to inclue and ra…
Browse files Browse the repository at this point in the history
…ndomly generated string
  • Loading branch information
NA2047 committed Mar 2, 2023
1 parent 5da2b36 commit 762be37
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3155,8 +3155,12 @@ data "google_compute_image" "debian" {
project = "debian-cloud"
}

resource "random_id" "id" {
byte_length = 8
}

resource "google_compute_disk" "persistent" {
name = "debian-disk"
name = "debian-disk-${random_id.id.hex}"
image = data.google_compute_image.debian.self_link
size = 10
type = "pd-ssd"
Expand Down

0 comments on commit 762be37

Please sign in to comment.