mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 18:04:04 +00:00
feat(WHE-28): add terraform baseline for cloud run and scheduler
This commit is contained in:
63
infra/terraform/modules/cloud_run_service/variables.tf
Normal file
63
infra/terraform/modules/cloud_run_service/variables.tf
Normal file
@@ -0,0 +1,63 @@
|
||||
variable "project_id" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "name" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "image" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "service_account_email" {
|
||||
type = string
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "allow_unauthenticated" {
|
||||
type = bool
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "env" {
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "secret_env" {
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "labels" {
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
|
||||
variable "container_port" {
|
||||
type = number
|
||||
default = 8080
|
||||
}
|
||||
|
||||
variable "min_instance_count" {
|
||||
type = number
|
||||
default = 0
|
||||
}
|
||||
|
||||
variable "max_instance_count" {
|
||||
type = number
|
||||
default = 3
|
||||
}
|
||||
|
||||
variable "limits" {
|
||||
type = map(string)
|
||||
default = {
|
||||
cpu = "1"
|
||||
memory = "512Mi"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user