mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
* feat(terraform/gcp): add dependencies-only mode Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(terraform/gcp): review fixes for dependencies-only mode Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: yassin <yassin@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
22 lines
843 B
HCL
22 lines
843 B
HCL
resource "google_redis_instance" "this" {
|
|
name = local.name
|
|
tier = var.redis_tier
|
|
memory_size_gb = var.redis_memory_size_gb
|
|
region = var.region
|
|
|
|
authorized_network = local.network_id
|
|
connect_mode = "PRIVATE_SERVICE_ACCESS"
|
|
|
|
redis_version = "REDIS_7_0"
|
|
|
|
labels = local.labels
|
|
|
|
# In-transit encryption between Cloud Run and Memorystore. The instance
|
|
# exposes its self-signed CA via `server_ca_certs` (read in cloudrun.tf
|
|
# and passed to the proxy as REDIS_CA_PEM_B64); the proxy decodes it to
|
|
# /tmp/redis-ca.pem at startup and uses it to validate the rediss://
|
|
# handshake. Mirrors `transit_encryption_enabled = true` on AWS.
|
|
transit_encryption_mode = var.redis_transit_encryption ? "SERVER_AUTHENTICATION" : "DISABLED"
|
|
|
|
depends_on = [google_service_networking_connection.psa]
|
|
}
|