Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
frasdav committed Jan 9, 2024
1 parent 7bddd98 commit 9c75565
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/point-to-site-vpn-gateway/src/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "azurerm_point_to_site_vpn_gateway" "main" {
name = "p2svpngw-${var.zone}-${var.environment}-${lookup(local.short_locations, var.location)}-${local.identifier}"
location = var.location
resource_group_name = module.resource_group.name
resource_group_name = var.resource_group_name

dns_servers = var.dns_servers
scale_unit = var.scale_unit
Expand All @@ -21,7 +21,7 @@ resource "azurerm_point_to_site_vpn_gateway" "main" {

resource "azurerm_monitor_diagnostic_setting" "main" {
name = "log-analytics"
target_resource_id = azurerm_key_vault.main.id
target_resource_id = azurerm_point_to_site_vpn_gateway.main.id
log_analytics_workspace_id = var.log_analytics_workspace_id

dynamic "enabled_log" {
Expand Down
5 changes: 3 additions & 2 deletions modules/point-to-site-vpn-gateway/test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ module "point_to_site_vpn_gateway" {
resource_group_name = "qux"
zone = "corge"

virtual_hub_id = "corge"
log_analytics_workspace_id = "grault"
virtual_hub_id = "garply"
vpn_client_address_pool_address_prefixes = []
vpn_server_configuration_id = "grault"
vpn_server_configuration_id = "waldo"

tags = {
Foo = "Bar"
Expand Down

0 comments on commit 9c75565

Please sign in to comment.