Skip to content

Commit

Permalink
feat: add optional device_name parameter for the aws_customer_gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
Art3mK committed May 30, 2024
1 parent 45f222d commit aafeca9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
resource "aws_customer_gateway" "this" {
for_each = var.create ? var.customer_gateways : {}

bgp_asn = each.value["bgp_asn"]
ip_address = each.value["ip_address"]
type = "ipsec.1"
bgp_asn = each.value["bgp_asn"]
ip_address = each.value["ip_address"]
device_name = each.value["device_name"]
type = "ipsec.1"

tags = merge(
{
Expand Down

0 comments on commit aafeca9

Please sign in to comment.