mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-05 05:41:11 +00:00
57 lines
No EOL
1.2 KiB
HCL
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
|
|
} |