Skip to content

Commit 675bd92

Browse files
committed
fix private/public agents subnets badly dispatched in subnets
1 parent 520ff01 commit 675bd92

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

aws/private-agent.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ resource "aws_instance" "agent" {
4242
# We're going to launch into the same subnet as our ELB. In a production
4343
# environment it's more common to have a separate private subnet for
4444
# backend instances.
45+
count = "${var.num_of_masters}"
4546
subnet_id = "${element(aws_subnet.private.*.id, count.index)}"
4647

4748
# OS init script

aws/public-agent.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ resource "aws_instance" "public-agent" {
8484
# We're going to launch into the same subnet as our ELB. In a production
8585
# environment it's more common to have a separate private subnet for
8686
# backend instances.
87+
count = "${var.num_of_masters}"
8788
subnet_id = "${element(aws_subnet.public.*.id, count.index)}"
8889

8990
# OS init script

0 commit comments

Comments
 (0)