kz8s/tack

workers are all in one availability zone

nkhine opened this issue · 3 comments

setting up the latest tack cluster it seems the workers are all created in one availability zone!

screenshot from 2017-06-25 08-37-55

how do i spread these?

bruj0 commented

Something like this:

modules/worker/ec2.tf
@@ -1,4 +1,5 @@
 resource "aws_launch_configuration" "worker" {
+   availability_zones        = ["us-east-1a", "us-east-1b", "us-east-1c"]
   ebs_block_device {
     device_name = "/dev/xvdf"
     volume_size = "${ var.volume_size["ebs"] }"

More info: https://www.terraform.io/docs/providers/aws/d/availability_zones.html