Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 8, 2021
1 parent 6a513af commit 7ae5181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vpc-remove-defaults/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ locals {
route_table = aws_default_route_table.default.id
vpc_dhcp_options = aws_default_vpc_dhcp_options.default.id
vpc = aws_default_vpc.default.id
igw = var.enable_igw_check == false ? "" : concat(data.aws_internet_gateway.default[*].id, list(""))
igw = var.enable_igw_check ? concat(data.aws_internet_gateway.default[*].id, list(""))[0] : ""
})
}

Expand Down Expand Up @@ -216,6 +216,6 @@ output "defaults" {
"route_table" = aws_default_route_table.default.id
"vpc_dhcp_options" = aws_default_vpc_dhcp_options.default.id
"vpc" = aws_default_vpc.default.id
"igw" = var.enable_igw_check == false ? "" : concat(data.aws_internet_gateway.default[*].id, list(""))
"igw" = var.enable_igw_check ? concat(data.aws_internet_gateway.default[*].id, list(""))[0] : ""
}
}

0 comments on commit 7ae5181

Please sign in to comment.