33 lines
953 B
HCL
33 lines
953 B
HCL
variable "project_id" {
|
|
description = "Existing Google Cloud project ID."
|
|
type = string
|
|
validation { condition = length(var.project_id) > 0 error_message = "project_id must not be empty." }
|
|
}
|
|
|
|
variable "region" {
|
|
description = "Regional placement for runtime and data."
|
|
type = string
|
|
default = "us-central1"
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "Environment name used in resource names."
|
|
type = string
|
|
default = "dev"
|
|
}
|
|
|
|
variable "container_image" {
|
|
description = "Externally built image used by Cloud Run."
|
|
type = string
|
|
default = "us-docker.pkg.dev/cloudrun/container/hello"
|
|
}
|
|
|
|
variable "invoker_service_account" {
|
|
description = "Producer identity allowed to invoke ingress."
|
|
type = string
|
|
}
|
|
|
|
variable "retention_days" { type = number default = 30 }
|
|
variable "retention_seconds" { type = number default = 2592000 }
|
|
variable "max_instances" { type = number default = 20 }
|