Skip to content

Commit

Permalink
fix: Fixed outputs and ipsec_policy block
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Jun 9, 2021
1 parent 4a1675e commit 3c2fa3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
12 changes: 11 additions & 1 deletion connections.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ resource "azurerm_virtual_network_gateway_connection" "connection" {
local_network_gateway_id = azurerm_local_network_gateway.local.id
shared_key = var.shared_key

ipsec_policy = var.ipsec_policy
dynamic "ipsec_policy" {
for_each = var.ipsec_policy
content {
dh_group = ipsec_policy.value["dh_group"]
ike_encryption = ipsec_policy.value["ike_encryption"]
ike_integrity = ipsec_policy.value["ike_integrity"]
ipsec_encryption = ipsec_policy.value["ipsec_encryption"]
ipsec_integrity = ipsec_policy.value["ipsec_integrity"]
pfs_group = ipsec_policy.value["pfs_group"]
}
}
}

data "azurerm_virtual_network" "target_vnet" {
Expand Down
15 changes: 2 additions & 13 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
output "resource_group" {
description = "The name of the generated resource group"
value = azurerm_resource_group.azure-resource-group.name
}

output "location" {
description = "The location input variable (can be used for dependency resolution)"
value = var.location
}

output "ppg_id" {
description = "The ID of the generated proximity placement group"
value = azurerm_proximity_placement_group.ppg.id
output "vpn_ip" {
value = azurerm_public_ip.publicip.ip_address
}

0 comments on commit 3c2fa3c

Please sign in to comment.