Skip to content

Commit

Permalink
data/aws/vpc/vpc-private: Set worker subnet availability_zone
Browse files Browse the repository at this point in the history
It looks like this was (accidentally?) removed in f828666
(modules/vpc: support re-apply of terraform when AZ number changes,
2018-03-12, coreos/tectonic-installer#3092).  We need to set it to
spread worker subnets over the available zones.
  • Loading branch information
wking committed Oct 18, 2018
1 parent ace571b commit b648dd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/data/aws/vpc/vpc-private.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ resource "aws_subnet" "worker_subnet" {
cidrsubnet(local.new_worker_cidr_range, 3, count.index),
)}"

availability_zone = "${local.new_worker_subnet_azs[count.index]}"

tags = "${merge(map(
"Name", "${var.cluster_name}-worker-${local.new_worker_subnet_azs[count.index]}",
"kubernetes.io/cluster/${var.cluster_name}","shared",
Expand Down

0 comments on commit b648dd8

Please sign in to comment.