47 lines
932 B
Terraform
47 lines
932 B
Terraform
|
|
variable "project_id" {
|
||
|
|
description = "The GCP project ID"
|
||
|
|
type = string
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "region" {
|
||
|
|
description = "The GCP region"
|
||
|
|
type = string
|
||
|
|
default = "us-central1"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "zone" {
|
||
|
|
description = "The GCP zone"
|
||
|
|
type = string
|
||
|
|
default = "us-central1-a"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "instance_name" {
|
||
|
|
description = "Name of the VM instance"
|
||
|
|
type = string
|
||
|
|
default = "data-engineering-vm"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "machine_type" {
|
||
|
|
description = "The machine type for the VM"
|
||
|
|
type = string
|
||
|
|
default = "e2-medium"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "disk_size_gb" {
|
||
|
|
description = "Boot disk size in GB"
|
||
|
|
type = number
|
||
|
|
default = 50
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "ssh_username" {
|
||
|
|
description = "SSH username for the VM"
|
||
|
|
type = string
|
||
|
|
default = "debian"
|
||
|
|
}
|
||
|
|
|
||
|
|
variable "ssh_pub_key_path" {
|
||
|
|
description = "Path to the SSH public key file"
|
||
|
|
type = string
|
||
|
|
default = "~/.ssh/id_rsa.pub"
|
||
|
|
}
|