Skip to content

Commit

Permalink
Merge branch 'main' into tamirkamara/2023-update-tomcat-url
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-p-smith committed Jun 9, 2022
2 parents 2a3a278 + 4f0c65f commit 17a9190
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "azurerm_eventgrid_system_topic" "import_approved_blob_created" {
topic_type = "Microsoft.Storage.StorageAccounts"

tags = {
Publishers = "airlock;accepted-import-sa"
Publishers = "airlock;approved-import-sa"
}

depends_on = [
Expand Down
20 changes: 20 additions & 0 deletions templates/workspaces/base/terraform/airlock/storage_accounts.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ resource "azurerm_storage_account" "sa_import_approved" {
# This is true ONLY when Hierarchical Namespace is DISABLED
is_hns_enabled = false

network_rules {
default_action = var.enable_local_debugging ? "Allow" : "Deny"
bypass = ["AzureServices"]
}

tags = {
description = "airlock;import;approved"
}
Expand Down Expand Up @@ -58,6 +63,11 @@ resource "azurerm_storage_account" "sa_export_internal" {
# This is true ONLY when Hierarchical Namespace is DISABLED
is_hns_enabled = false

network_rules {
default_action = var.enable_local_debugging ? "Allow" : "Deny"
bypass = ["AzureServices"]
}

tags = {
description = "airlock;export;internal"
}
Expand Down Expand Up @@ -100,6 +110,11 @@ resource "azurerm_storage_account" "sa_export_inprogress" {
# This is true ONLY when Hierarchical Namespace is DISABLED
is_hns_enabled = false

network_rules {
default_action = var.enable_local_debugging ? "Allow" : "Deny"
bypass = ["AzureServices"]
}

tags = {
description = "airlock;export;inprogress"
}
Expand Down Expand Up @@ -142,6 +157,11 @@ resource "azurerm_storage_account" "sa_export_rejected" {
# This is true ONLY when Hierarchical Namespace is DISABLED
is_hns_enabled = false

network_rules {
default_action = var.enable_local_debugging ? "Allow" : "Deny"
bypass = ["AzureServices"]
}

tags = {
description = "airlock;export;rejected"
}
Expand Down
2 changes: 1 addition & 1 deletion templates/workspaces/base/terraform/workspace.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module "airlock" {
location = var.location
tre_id = var.tre_id
ws_resource_group_name = azurerm_resource_group.ws.name
enable_local_debugging = true
enable_local_debugging = var.enable_local_debugging
services_subnet_id = module.network.services_subnet_id
short_workspace_id = local.short_workspace_id

Expand Down

0 comments on commit 17a9190

Please sign in to comment.