| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- # Variables for minimal GCP Cloud Run deployment
- variable "project_id" {
- description = "GCP Project ID"
- type = string
- }
- variable "region" {
- description = "GCP region for deployment"
- type = string
- default = "us-central1"
- }
- variable "project_name" {
- description = "Name of the project (used for resource naming)"
- type = string
- default = "llama-api"
- }
- variable "environment" {
- description = "Environment name (dev, staging, prod)"
- type = string
- default = "dev"
- }
- variable "container_image" {
- description = "Container image URL for the Cloud Run service"
- type = string
- default = "gcr.io/cloudrun/hello"
- }
- variable "cpu_limit" {
- description = "CPU limit for the container"
- type = string
- default = "2"
- }
- variable "memory_limit" {
- description = "Memory limit for the container"
- type = string
- default = "2Gi"
- }
- variable "container_port" {
- description = "Port that the container listens on"
- type = number
- default = 8080
- }
- variable "min_instances" {
- description = "Minimum number of instances"
- type = number
- default = 0
- }
- variable "max_instances" {
- description = "Maximum number of instances"
- type = number
- default = 10
- }
- variable "execution_environment" {
- description = "Execution environment for the service"
- type = string
- default = "EXECUTION_ENVIRONMENT_GEN2"
- }
- variable "environment_variables" {
- description = "Environment variables for the container"
- type = map(string)
- default = {}
- }
- variable "allow_public_access" {
- description = "Whether to allow public access to the service"
- type = bool
- default = false
- }
- variable "allowed_members" {
- description = "List of members allowed to access the service"
- type = list(string)
- default = []
- }
|