Skip to content

Commit

Permalink
fix route list count for tf v0.11
Browse files Browse the repository at this point in the history
as par:
eff1650
  • Loading branch information
Richard-Mathie authored Jun 13, 2019
1 parent a8223d5 commit b9654e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "aws_vpc_peering_connection_options" "accepter" {
###################
resource "aws_route" "this_routes_region" {
provider = "aws.this"
count = "${var.create_peering == 1 ? length(data.aws_route_tables.peer_vpc_rts.ids) : 0}"
count = "${var.create_peering == 1 ? length(data.aws_route_tables.this_vpc_rts.ids) : 0}"
route_table_id = "${data.aws_route_tables.this_vpc_rts.ids[count.index]}"
destination_cidr_block = "${data.aws_vpc.peer_vpc.cidr_block}"
vpc_peering_connection_id = "${var.peering_id == "" ? element(concat(aws_vpc_peering_connection.this.*.id, list("")), 0) : var.peering_id}"
Expand Down

0 comments on commit b9654e8

Please sign in to comment.