Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 26, 2022
1 parent 677fa19 commit 4b25e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpn-transit-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ resource "random_string" "tunnel_preshared_key" {
#---
resource "aws_vpn_connection" "vpn" {
for_each = var.create ? local.vpn_settings : {}
type = aws_customer_gateway.vpn[each.key]
type = aws_customer_gateway.vpn[each.key].type

transit_gateway_id = var.transit_gateway_id
customer_gateway_id = aws_customer_gateway.vpn[each.key].id
Expand Down

0 comments on commit 4b25e67

Please sign in to comment.