Skip to content

Commit

Permalink
Fixed deprecated warning, using network_interface_id instead (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
Co-authored-by: Matt Gowie <gowie.matt@gmail.com>
  • Loading branch information
3 people authored Apr 27, 2022
1 parent caed0e7 commit 03b3277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nat-instance.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "aws_eip_association" "nat_instance" {
resource "aws_route" "nat_instance" {
count = local.enabled ? local.nat_instance_count : 0
route_table_id = element(aws_route_table.private.*.id, count.index)
instance_id = element(aws_instance.nat_instance.*.id, count.index)
network_interface_id = element(aws_instance.nat_instance.*.primary_network_interface_id, count.index)
destination_cidr_block = "0.0.0.0/0"
depends_on = [aws_route_table.private]

Expand Down

0 comments on commit 03b3277

Please sign in to comment.