You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create VM with exiting snapshot IT. where the code in terraform not available. i tried this below
resource "google_compute_instance" "vm_instance" {
name = "terraform-instance"
machine_type = "e2-micro"
boot_disk {
initialize_params {
sk {
disk = "demo-sanpshot"
auto_d image = "debian-cloud/debian-11"
}
}
dielete = true
}
but no luck
even this also not working
disks = {
red = { from_snapshot = "REPLACE_ME_WITH_SNAPSHOT_NAME" }
}
The text was updated successfully, but these errors were encountered:
resource "google_compute_instance" "vm_instance" {
name = "terraform-instance"
machine_type = "e2-micro"
boot_disk {
initialize_params {
image = "debian-cloud/debian-11"
snapshot = "YOUR_SNAPSHOT_NAME" # Replace with the name of your snapshot
}
}
# Other configuration options for your VM instance
# ...
}
Hi @A-THS5826-temp - Can you please provide more details on error you are getting or more information related to issue along with detaills you are entering to create new VM ? so that can check and help you accordingly.
I wanted to create VM with exiting snapshot IT. where the code in terraform not available. i tried this below
resource "google_compute_instance" "vm_instance" {
name = "terraform-instance"
machine_type = "e2-micro"
boot_disk {
initialize_params {
sk {
disk = "demo-sanpshot"
auto_d image = "debian-cloud/debian-11"
}
}
dielete = true
}
but no luck
even this also not working
disks = {
red = { from_snapshot = "REPLACE_ME_WITH_SNAPSHOT_NAME" }
}
The text was updated successfully, but these errors were encountered: