Skip to content

Commit 7d54a31

Browse files
committed
Hard code AZ count.
hashicorp/terraform#1497
1 parent 20a2f7f commit 7d54a31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module "azs" {
3434
}
3535

3636
resource "aws_subnet" "front" {
37-
count = "${module.azs.az_count}"
37+
count = "2" // FIXME ${module.azs.az_count}"
3838
vpc_id = "${aws_vpc.main.id}"
3939
cidr_block = "${var.networkprefix}.${count.index}.0/24"
4040
map_public_ip_on_launch = true
@@ -46,13 +46,13 @@ resource "aws_subnet" "front" {
4646
}
4747
4848
resource "aws_route_table_association" "front" {
49-
count = "${module.azs.az_count}"
49+
count = "2" // FIXME ${module.azs.az_count}"
5050
subnet_id = "${element(aws_subnet.front.*.id, count.index)}"
5151
route_table_id = "${aws_route_table.public.id}"
5252
}
5353
5454
resource "aws_subnet" "back" {
55-
count = "${module.azs.az_count}"
55+
count = "2" // FIXME ${module.azs.az_count}"
5656
vpc_id = "${aws_vpc.main.id}"
5757
cidr_block = "${var.networkprefix}.${count.index+10}.0/24"
5858
availability_zone = "${element(split(\",\", module.azs.list_all), count.index)}"
@@ -63,7 +63,7 @@ resource "aws_subnet" "back" {
6363
}
6464
6565
resource "aws_subnet" "ephemeral" {
66-
count = "${module.azs.az_count}"
66+
count = "2" // FIXME ${module.azs.az_count}"
6767
vpc_id = "${aws_vpc.main.id}"
6868
cidr_block = "${var.networkprefix}.${64*(count.index+1)}.0/18"
6969
availability_zone = "${element(split(\",\", module.azs.list_all), count.index)}"

0 commit comments

Comments
 (0)