Files
Benjamin Edwards e82cec03eb GCP Terraform refactor (#46)
This is an updated version of the previous [GCP
terraform](https://github.com/fleetdm/fleet/tree/main/infrastructure/dogfood/terraform/gcp)
with more options and updated usage of modules and Cloud Run (v1 -> v2)
which means we were able to ditch the manged VPC connectors (extra cost)
and go with the VPC direct access.

I think now that I have cloud run jobs figured out we'll be able to add
a proper migration addon or module.
2025-07-14 13:03:22 -04:00

18 lines
612 B
Terraform

module "memstore" {
source = "terraform-google-modules/memorystore/google"
version = "~> 14.0"
name = var.cache_config.name
redis_version = var.cache_config.engine_version
tier = var.cache_config.tier
memory_size_gb = var.cache_config.memory_size
project_id = var.project_id
region = var.region
enable_apis = true
transit_encryption_mode = "DISABLED"
authorized_network = module.vpc.network_id
connect_mode = var.cache_config.connect_mode
depends_on = [module.private-service-access.peering_completed]
}