Read CPU Count
Closed this issue · 3 comments
elJoeyJojo commented
I was trying to pass in a variable to control CPU count on read instance but doesn't work. It appears the resource doesn't take in a machine_cpu_count like the primary resource
resource "google_alloydb_instance" "read_pool" {
for_each = local.read_pool_instance
cluster = google_alloydb_cluster.default.name
instance_id = each.key
instance_type = each.value.instance_type
read_pool_config {
node_count = each.value.node_count
}
database_flags = each.value.database_flags
depends_on = [google_alloydb_instance.primary]
}
elJoeyJojo commented
is this module going to be tagged? it still shows as 0.1.0 https://registry.terraform.io/modules/GoogleCloudPlatform/alloy-db/google/latest
imrannayer commented
@elJoeyJojo you can either wait for 0.2 release or you can directly point to github main branch to get the feature.
elJoeyJojo commented
thanks @imrannayer