Jelajahi Sumber

Merge pull request #131 from mdr-engineering/hotfix/ftd_na_InterconnectVPNFix

Configures Values for newly configurable VPN options
Frederick Damstra 4 tahun lalu
induk
melakukan
b9632f32d5
1 mengubah file dengan 18 tambahan dan 0 penghapusan
  1. 18 0
      base/transit_gateway_interconnect_vpn/main.tf

+ 18 - 0
base/transit_gateway_interconnect_vpn/main.tf

@@ -12,4 +12,22 @@ resource "aws_vpn_connection" "vpn" {
   transit_gateway_id  = var.transit_gateway_id
   type                = aws_customer_gateway.attachment[count.index].type
   tags = merge(var.standard_tags, var.tags)
+
+  # The following settings (and more) originally could not be configured. We may want to revisit to see
+  # if these things should be hardened, but they look strong to me already.
+  tunnel1_ike_versions                 = [ "ikev2", ]
+  tunnel1_phase1_dh_group_numbers      = [ 15, 16, 17, ]
+  tunnel1_phase1_encryption_algorithms = [ "AES256", ]
+  tunnel1_phase1_integrity_algorithms  = [ "SHA2-256", ]
+  tunnel1_phase2_dh_group_numbers      = [ 15, 16, 17, ]
+  tunnel1_phase2_encryption_algorithms = [ "AES256", ]
+  tunnel1_phase2_integrity_algorithms  = [ "SHA2-256", ]
+
+  tunnel2_ike_versions                 = [ "ikev2", ]
+  tunnel2_phase1_dh_group_numbers      = [ 15, 16, 17, ]
+  tunnel2_phase1_encryption_algorithms = [ "AES256", ]
+  tunnel2_phase1_integrity_algorithms  = [ "SHA2-256", ]
+  tunnel2_phase2_dh_group_numbers      = [ 15, 16, 17, ]
+  tunnel2_phase2_encryption_algorithms = [ "AES256", ]
+  tunnel2_phase2_integrity_algorithms  = [ "SHA2-256", ]
 }