89 lines
2.2 KiB
HCL
89 lines
2.2 KiB
HCL
variable "project_id" {
|
|
description = "The Google Cloud project ID"
|
|
type = string
|
|
}
|
|
|
|
variable "region" {
|
|
description = "The Google Cloud region"
|
|
type = string
|
|
default = "us-central1"
|
|
}
|
|
|
|
variable "zone" {
|
|
description = "The Google Cloud zone"
|
|
type = string
|
|
default = "us-central1-a"
|
|
}
|
|
|
|
variable "storage_bucket_name" {
|
|
description = "The name of the Cloud Storage bucket"
|
|
type = string
|
|
}
|
|
|
|
variable "firestore_db_name" {
|
|
description = "The name of the Firestore database"
|
|
type = string
|
|
default = "sereact-imagedb"
|
|
}
|
|
|
|
variable "environment" {
|
|
description = "The deployment environment (dev, staging, prod)"
|
|
type = string
|
|
default = "dev"
|
|
}
|
|
|
|
variable "pubsub_topic_name" {
|
|
description = "The name of the Pub/Sub topic for image processing"
|
|
type = string
|
|
default = "image-processing-topic"
|
|
}
|
|
|
|
variable "cloud_run_service_account" {
|
|
description = "The service account email for Cloud Run"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "cloud_function_service_account" {
|
|
description = "The service account email for Cloud Functions"
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
# Vector Database VM variables
|
|
variable "qdrant_api_key" {
|
|
description = "API key for Qdrant vector database"
|
|
type = string
|
|
sensitive = true
|
|
default = ""
|
|
}
|
|
|
|
variable "vector_db_environment" {
|
|
description = "Vector database environment (e.g., gcp-starter for Pinecone)"
|
|
type = string
|
|
default = "gcp-starter"
|
|
}
|
|
|
|
variable "vector_db_index_name" {
|
|
description = "Vector database index name for image embeddings"
|
|
type = string
|
|
default = "image-embeddings"
|
|
}
|
|
|
|
variable "allowed_cidr_blocks" {
|
|
description = "CIDR blocks allowed to access the vector database"
|
|
type = string
|
|
default = "0.0.0.0/0" # Change this to your specific IP ranges for security
|
|
}
|
|
|
|
variable "use_static_ip" {
|
|
description = "Whether to use a static IP for the vector database VM"
|
|
type = bool
|
|
default = false
|
|
}
|
|
|
|
variable "image_tag" {
|
|
description = "The Docker image tag for the Cloud Run service"
|
|
type = string
|
|
default = "latest"
|
|
} |