Skip to content

Commit ef564c9

Browse files
authored
feat: Add support for bgp_asn_extended argument to the customer_gateways variable (#1249)
Feat: add bgp_asn_extended to aws_customer_gateway resource
1 parent e591dec commit ef564c9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

examples/complete/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ module "vpc" {
6464
bgp_asn = 65112
6565
ip_address = "5.6.7.8"
6666
}
67+
IP3 = {
68+
bgp_asn_extended = 2147483648
69+
ip_address = "5.6.7.8"
70+
}
6771
}
6872

6973
enable_vpn_gateway = true

main.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,10 +1290,11 @@ resource "aws_customer_gateway" "this" {
12901290

12911291
region = var.region
12921292

1293-
bgp_asn = each.value["bgp_asn"]
1294-
ip_address = each.value["ip_address"]
1295-
device_name = lookup(each.value, "device_name", null)
1296-
type = "ipsec.1"
1293+
bgp_asn = lookup(each.value, "bgp_asn", null)
1294+
bgp_asn_extended = lookup(each.value, "bgp_asn_extended", null)
1295+
ip_address = each.value["ip_address"]
1296+
device_name = lookup(each.value, "device_name", null)
1297+
type = "ipsec.1"
12971298

12981299
tags = merge(
12991300
{ Name = "${var.name}-${each.key}" },

0 commit comments

Comments
 (0)