Skip to content

Commit

Permalink
Merge pull request #3 from grem11n/fix-typo
Browse files Browse the repository at this point in the history
Issue #2. fix typo
  • Loading branch information
grem11n committed Jul 19, 2018
2 parents 78f674e + 7909498 commit c06bf36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module "vpc-peering" {
this_vpc_id = "${module.vpc.vpc_id}"
private_route_table_ids = ["${module.vpc.private_route_table_ids}"]
public_route_table_ids = ["${module.vpc.public_route_table_ids}"]
peer_cird_block = "10.1.0.1/24"
peer_cidr_block = "10.1.0.1/24"
auto_accept_peering = true
}
```
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ resource "aws_route" "private_route_table" {
count = "${length(var.private_route_table_ids)}"

route_table_id = "${element(var.private_route_table_ids, count.index)}"
destination_cidr_block = "${var.peer_cird_block}"
destination_cidr_block = "${var.peer_cidr_block}"
vpc_peering_connection_id = "${aws_vpc_peering_connection.this.id}"
depends_on = ["aws_vpc_peering_connection.this"]
}
Expand All @@ -27,7 +27,7 @@ resource "aws_route" "public_route_table" {
count = "${length(var.public_route_table_ids) > 0 ? 1: 0}"

route_table_id = "${element(var.public_route_table_ids, count.index)}"
destination_cidr_block = "${var.peer_cird_block}"
destination_cidr_block = "${var.peer_cidr_block}"
vpc_peering_connection_id = "${aws_vpc_peering_connection.this.id}"
depends_on = ["aws_vpc_peering_connection.this"]
}
4 changes: 2 additions & 2 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ output "public_route_table" {
value = ["${var.public_route_table_ids}"]
}

output "peer_cird_block" {
output "peer_cidr_block" {
description = "Peer CIDR block"
value = "${var.peer_cird_block}"
value = "${var.peer_cidr_block}"
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ variable "public_route_table_ids" {
default = []
}

variable "peer_cird_block" {
variable "peer_cidr_block" {
description = "Peer VPC CIDR block"
default = ""
}
Expand Down

0 comments on commit c06bf36

Please sign in to comment.