commit new files

This commit is contained in:
gregory hendrickson
2023-03-30 04:13:23 -07:00
parent 40acf53cfa
commit 8ae53a8932
8 changed files with 93 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
resource "google_compute_instance_template" "template" {
name_prefix = "instance-template-"
project = var.project_id
region = var.region
machine_type = var.instance_type
disk {
source_image = var.image_name
auto_delete = true
boot = true
}
network_interface {
network = "default"
access_config {
// Ephemeral public IP address
}
}
metadata_startup_script = var.startup_script
lifecycle {
create_before_destroy = true
}
}

View File

@@ -0,0 +1,5 @@
variable "project_id" {}
variable "region" {}
variable "image_name" {}
variable "instance_type" {}
variable "startup_script" {}