spring-petclinic/terraform/variables.tf
2026-01-08 15:15:00 +01:00

57 lines
No EOL
1.2 KiB
HCL

variable "project_id" {
description = "GCP Project ID"
type = string
}
variable "region" {
description = "GCP Region"
type = string
default = "us-central1"
}
variable "environment" {
description = "Environment name (dev, prod)"
type = string
validation {
condition = contains(["dev", "prod"], var.environment)
error_message = "Environment must be dev or prod."
}
}
variable "image_tag" {
description = "Docker image tag to deploy"
type = string
default = "latest"
}
# Cloud Run Configuration
variable "min_instances" {
description = "Minimum number of Cloud Run instances"
type = number
default = 0
}
variable "max_instances" {
description = "Maximum number of Cloud Run instances"
type = number
default = 10
}
variable "cpu_limit" {
description = "CPU limit for Cloud Run container"
type = string
default = "1"
}
variable "memory_limit" {
description = "Memory limit for Cloud Run container"
type = string
default = "512Mi"
}
variable "allow_public_access" {
description = "Allow public access to the service"
type = bool
default = true
}