Skip to content

Commit

Permalink
Added comment re primary_count
Browse files Browse the repository at this point in the history
Added an explanation around the count line of the primary instance resource
  • Loading branch information
amy-hashi committed Sep 27, 2019
1 parent 52d5bd9 commit ead36b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions primary.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
resource "google_compute_instance" "primary" {
/* The number of primaries must be hard coded to 3 when Internal Production Mode
is selected. Currently, that mode does not support scaling. In other modes, the
cluster can be scaled according the primary_count variable. */
count = "${var.install_type == "ipm" ? 3 : var.primary_count}"
name = "${var.prefix}-primary-${count.index}"
machine_type = "${var.primary_machine_type}"
Expand Down

0 comments on commit ead36b5

Please sign in to comment.