add version and cleanup sloc

This commit is contained in:
gregory hendrickson
2023-03-30 04:45:23 -07:00
parent 8ae53a8932
commit b090717726
2 changed files with 9 additions and 5 deletions

View File

@@ -1,9 +1,13 @@
resource "google_compute_instance_group_manager" "instance_group" {
name = "instance-group"
project = var.project_id
region = var.region
#region = var.region
base_instance_name = "instance"
instance_template = var.template_self_link
version {
name = "webserver"
instance_template = var.template_self_link
}
target_size = 2
}
}

View File

@@ -1,3 +1,3 @@
variable "project_id" {}
variable "region" {}
variable "template_self_link" {}
variable "template_self_link" {}