Skip to content

Commit

Permalink
Added comment re primary_count
Browse files Browse the repository at this point in the history
Inserted a comment explaining the count line on the primary instance resource.
  • Loading branch information
amy-hashi committed Sep 27, 2019
1 parent 2638e8d commit e88158f
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 "aws_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}"
ami = "${var.ami != "" ? var.ami : local.distro_ami}"
instance_type = "${var.primary_instance_type}"
Expand Down

0 comments on commit e88158f

Please sign in to comment.