diff --git a/infrastructure/tf-audit/outputs.tf b/infrastructure/tf-audit/outputs.tf index f41c493a..ef59a335 100644 --- a/infrastructure/tf-audit/outputs.tf +++ b/infrastructure/tf-audit/outputs.tf @@ -1,7 +1,3 @@ output "log_analytics_workspace_id" { - value = { - for k, v in module.log_analytics_workspace_audit : k => { - id = v.id - } - } + value = { for k, v in module.log_analytics_workspace_audit : k => v.id } } diff --git a/infrastructure/tf-audit/variables.tf b/infrastructure/tf-audit/variables.tf index 05e21dd9..51de71df 100644 --- a/infrastructure/tf-audit/variables.tf +++ b/infrastructure/tf-audit/variables.tf @@ -18,7 +18,7 @@ variable "HUB_BACKEND_AZURE_STORAGE_ACCOUNT_CONTAINER_NAME" { type = string } -variable "HUB_BACKEND_AZURE_STORAGE_KEY" { +variable "HUB_BACKEND_AZURE_STORAGE_ACCOUNT_KEY" { description = "The name of the Statefile for the hub resources" type = string } diff --git a/infrastructure/tf-core/environments/development.tfvars b/infrastructure/tf-core/environments/development.tfvars index 6c0d0a2b..a0898557 100644 --- a/infrastructure/tf-core/environments/development.tfvars +++ b/infrastructure/tf-core/environments/development.tfvars @@ -227,7 +227,6 @@ function_apps = { db_connection_string = "ServiceInsightsDbConnectionString" } - # does not build currently ReceiveData = { name_suffix = "receive-data" function_endpoint_name = "ReceiveData" @@ -296,7 +295,7 @@ function_apps = { GetOrganisationData = { name_suffix = "get-organisation-data" - function_endpoint_name = "GetOrganisationData " + function_endpoint_name = "GetOrganisationData" app_service_plan_key = "ReferenceDataService" db_connection_string = "ServiceInsightsDbConnectionString" } diff --git a/infrastructure/tf-core/function_app.tf b/infrastructure/tf-core/function_app.tf index 08da3a1e..e8a1f322 100644 --- a/infrastructure/tf-core/function_app.tf +++ b/infrastructure/tf-core/function_app.tf @@ -7,8 +7,7 @@ module "functionapp" { resource_group_name = azurerm_resource_group.core[each.value.region_key].name location = each.value.region_key - # to go in later - log_analytics_workspace_id = data.terraform_remote_state.audit.outputs.log_analytics_workspace_id[local.primary_region].id + log_analytics_workspace_id = data.terraform_remote_state.audit.outputs.log_analytics_workspace_id[local.primary_region] app_settings = local.app_settings[each.value.region_key][each.value.function_key] diff --git a/infrastructure/tf-core/variables.tf b/infrastructure/tf-core/variables.tf index 5a6da2f1..ddb429cc 100644 --- a/infrastructure/tf-core/variables.tf +++ b/infrastructure/tf-core/variables.tf @@ -1,19 +1,13 @@ -# variable "AUDIT_BACKEND_AZURE_SUBSCRIPTION_ID" { -# description = "ID of the Azure Storage Account for the audit backend" -# type = string -# } variable "AUDIT_BACKEND_AZURE_STORAGE_ACCOUNT_NAME" { description = "The name of the Azure Storage Account for the audit backend" type = string } + variable "AUDIT_BACKEND_AZURE_STORAGE_ACCOUNT_CONTAINER_NAME" { description = "The name of the container in the Audit Azure Storage Account for the backend" type = string } -# variable "AUDIT_BACKEND_AZURE_STORAGE_KEY" { -# description = "The name of the Statefile for the audit resources" -# type = string -# } + variable "AUDIT_BACKEND_AZURE_RESOURCE_GROUP_NAME" { description = "The name of the audit resource group for the Azure Storage Account" type = string @@ -49,7 +43,7 @@ variable "HUB_BACKEND_AZURE_STORAGE_ACCOUNT_CONTAINER_NAME" { type = string } -variable "HUB_BACKEND_AZURE_STORAGE_KEY" { +variable "HUB_BACKEND_AZURE_STORAGE_ACCOUNT_KEY" { description = "The name of the Statefile for the hub resources" type = string }