File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ resource "aws_instance" "agent" {
42
42
# We're going to launch into the same subnet as our ELB. In a production
43
43
# environment it's more common to have a separate private subnet for
44
44
# backend instances.
45
+ count = " ${ var . num_of_masters } "
45
46
subnet_id = " ${ element (aws_subnet. private . * . id , count. index )} "
46
47
47
48
# OS init script
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ resource "aws_instance" "public-agent" {
84
84
# We're going to launch into the same subnet as our ELB. In a production
85
85
# environment it's more common to have a separate private subnet for
86
86
# backend instances.
87
+ count = " ${ var . num_of_masters } "
87
88
subnet_id = " ${ element (aws_subnet. public . * . id , count. index )} "
88
89
89
90
# OS init script
You can’t perform that action at this time.
0 commit comments