Skip to content

Commit

Permalink
Fix a problem of the resource
Browse files Browse the repository at this point in the history
Resource 'aws_nat_gateway.nat_2' not found for variable 'aws_nat_gateway.nat_2.id'

jetbrains-infra#2
  • Loading branch information
espozbob authored Dec 29, 2018
1 parent 9f74e80 commit aa4fbfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routing_nat_instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource "aws_route_table" "nat_instance_2" {

route {
cidr_block = "0.0.0.0/0"
instance_id = "${aws_nat_gateway.nat_2.id}"
instance_id = "${aws_instance.nat_2.id}"
}

tags {
Expand All @@ -36,4 +36,4 @@ resource "aws_route_table_association" "app_2_subnet_to_nat_instance" {
count = "${local.nat_instance_multi_az ? 1 : 0}"
route_table_id = "${aws_route_table.nat_instance_2.id}"
subnet_id = "${aws_subnet.private_app_2.id}"
}
}

0 comments on commit aa4fbfa

Please sign in to comment.