Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ module "vpc" {
bgp_asn = 65112
ip_address = "5.6.7.8"
}
IP3 = {
bgp_asn_extended = 2147483648
ip_address = "5.6.7.8"
}
}

enable_vpn_gateway = true
Expand Down
9 changes: 5 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1290,10 +1290,11 @@ resource "aws_customer_gateway" "this" {

region = var.region

bgp_asn = each.value["bgp_asn"]
ip_address = each.value["ip_address"]
device_name = lookup(each.value, "device_name", null)
type = "ipsec.1"
bgp_asn = lookup(each.value, "bgp_asn", null)
bgp_asn_extended = lookup(each.value, "bgp_asn_extended", null)
ip_address = each.value["ip_address"]
device_name = lookup(each.value, "device_name", null)
type = "ipsec.1"

tags = merge(
{ Name = "${var.name}-${each.key}" },
Expand Down
Loading