Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable ftp in airlock app #2059

Merged
merged 2 commits into from
Jun 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions templates/core/terraform/airlock/airlock_processor.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,26 @@ resource "azurerm_linux_function_app" "airlock_function_app" {
}

app_settings = {
"SB_CONNECTION_STRING" = data.azurerm_servicebus_namespace.airlock_sb.default_primary_connection_string
"BLOB_CREATED_TOPIC_NAME" = azurerm_servicebus_topic.blob_created.name
"TOPIC_SUBSCRIPTION_NAME" = azurerm_servicebus_subscription.airlock_processor.name
"EVENT_GRID_TOPIC_URI_SETTING" = azurerm_eventgrid_topic.step_result.endpoint
"EVENT_GRID_TOPIC_KEY_SETTING" = azurerm_eventgrid_topic.step_result.primary_access_key
"WEBSITES_ENABLE_APP_SERVICE_STORAGE" = false
"AIRLOCK_STATUS_CHANGED_QUEUE_NAME" = local.status_changed_queue_name
"APPINSIGHTS_INSTRUMENTATIONKEY" = data.azurerm_application_insights.core.instrumentation_key
"MANAGED_IDENTITY_CLIENT_ID" = azurerm_user_assigned_identity.airlock_id.client_id
"AZURE_SUBSCRIPTION_ID" = var.arm_subscription_id
"TRE_ID" = var.tre_id
"WEBSITE_CONTENTOVERVNET" = 1
"SB_CONNECTION_STRING" = data.azurerm_servicebus_namespace.airlock_sb.default_primary_connection_string
"BLOB_CREATED_TOPIC_NAME" = azurerm_servicebus_topic.blob_created.name
"TOPIC_SUBSCRIPTION_NAME" = azurerm_servicebus_subscription.airlock_processor.name
"EVENT_GRID_TOPIC_URI_SETTING" = azurerm_eventgrid_topic.step_result.endpoint
"EVENT_GRID_TOPIC_KEY_SETTING" = azurerm_eventgrid_topic.step_result.primary_access_key
"WEBSITES_ENABLE_APP_SERVICE_STORAGE" = false
"AIRLOCK_STATUS_CHANGED_QUEUE_NAME" = local.status_changed_queue_name
"APPLICATIONINSIGHTS_CONNECTION_STRING" = data.azurerm_application_insights.core.connection_string
"MANAGED_IDENTITY_CLIENT_ID" = azurerm_user_assigned_identity.airlock_id.client_id
"AZURE_SUBSCRIPTION_ID" = var.arm_subscription_id
"TRE_ID" = var.tre_id
"WEBSITE_CONTENTOVERVNET" = 1
}

site_config {
always_on = var.enable_local_debugging ? true : false
container_registry_managed_identity_client_id = azurerm_user_assigned_identity.airlock_id.client_id
container_registry_use_managed_identity = true
vnet_route_all_enabled = true
ftps_state = "Disabled"

application_stack {
docker {
Expand All @@ -83,6 +84,10 @@ resource "azurerm_linux_function_app" "airlock_function_app" {
image_tag = local.version
}
}

# This is added automatically (by Azure?) when the equivalent is set in app_settings.
# Setting it here to save TF from updating every apply.
application_insights_connection_string = data.azurerm_application_insights.core.connection_string
}

lifecycle { ignore_changes = [tags] }
Expand Down