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

terraform_typed_variables turn on #3660

Merged
merged 13 commits into from
Aug 14, 2023
2 changes: 1 addition & 1 deletion .github/linters/.tflint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rule "terraform_unused_declarations" {
}

rule "terraform_typed_variables" {
enabled = false
enabled = true
}

rule "terraform_required_providers" {
Expand Down
4 changes: 0 additions & 4 deletions .github/linters/.tflint_shared_services.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ plugin "azurerm" {
enabled = true
}

rule "terraform_typed_variables" {
enabled = false
}

rule "azurerm_resource_missing_tags" {
enabled = true
tags = ["tre_id", "tre_shared_service_id"]
Expand Down
4 changes: 0 additions & 4 deletions .github/linters/.tflint_user_resources.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ plugin "azurerm" {
enabled = true
}

rule "terraform_typed_variables" {
enabled = false
}

rule "azurerm_resource_missing_tags" {
enabled = true
tags = ["tre_id", "tre_workspace_id", "tre_workspace_service_id", "tre_user_resource_id"]
Expand Down
4 changes: 0 additions & 4 deletions .github/linters/.tflint_workspace_services.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ plugin "azurerm" {
enabled = true
}

rule "terraform_typed_variables" {
enabled = false
}

rule "azurerm_resource_missing_tags" {
enabled = true
tags = ["tre_id", "tre_workspace_id", "tre_workspace_service_id"]
Expand Down
75 changes: 57 additions & 18 deletions core/terraform/airlock/variables.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
variable "tre_id" {}
variable "location" {}
variable "resource_group_name" {}
variable "airlock_storage_subnet_id" {}
variable "airlock_events_subnet_id" {}
variable "enable_local_debugging" {}
variable "myip" {}
variable "api_principal_id" {}
variable "tre_id" {
type = string
}
variable "location" {
type = string
}
variable "resource_group_name" {
type = string
}
variable "airlock_storage_subnet_id" {
type = string
}
variable "airlock_events_subnet_id" {
type = string
}
variable "enable_local_debugging" {
type = bool
marrobi marked this conversation as resolved.
Show resolved Hide resolved
}
variable "myip" {
type = string
}
variable "api_principal_id" {
type = string
}

variable "docker_registry_server" {
type = string
Expand Down Expand Up @@ -33,22 +49,45 @@ variable "airlock_app_service_plan_sku" {
default = "P1v3"
}

variable "airlock_processor_subnet_id" {}
variable "airlock_processor_subnet_id" {
type = string
}

variable "applicationinsights_connection_string" {}
variable "airlock_servicebus" {}
variable "tre_core_tags" {}
variable "applicationinsights_connection_string" {
type = string
}
variable "airlock_servicebus" {
type = object({
id = string
default_primary_connection_string = string
})
}
variable "tre_core_tags" {
type = map(string)
}

variable "enable_malware_scanning" {
type = bool
description = "If False, Airlock requests will skip the malware scanning stage"
}

variable "arm_environment" {}
variable "arm_environment" {
type = string
}

variable "log_analytics_workspace_id" {}
variable "log_analytics_workspace_id" {
type = string
}

variable "blob_core_dns_zone_id" {}
variable "file_core_dns_zone_id" {}
variable "queue_core_dns_zone_id" {}
variable "table_core_dns_zone_id" {}
variable "blob_core_dns_zone_id" {
type = string
}
variable "file_core_dns_zone_id" {
type = string
}
variable "queue_core_dns_zone_id" {
type = string
}
variable "table_core_dns_zone_id" {
type = string
}
36 changes: 27 additions & 9 deletions core/terraform/appgateway/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@

variable "tre_id" {}
variable "location" {}
variable "resource_group_name" {}
variable "app_gw_subnet" {}
variable "shared_subnet" {}
variable "api_fqdn" {}
variable "keyvault_id" {}
variable "static_web_dns_zone_id" {}
variable "log_analytics_workspace_id" {}
variable "tre_id" {
type = string
}
variable "location" {
type = string
}
variable "resource_group_name" {
type = string
}
variable "app_gw_subnet" {
type = string
}
variable "shared_subnet" {
type = string
}
variable "api_fqdn" {
type = string
}
variable "keyvault_id" {
type = string
}
variable "static_web_dns_zone_id" {
type = string
}
variable "log_analytics_workspace_id" {
type = string
}
44 changes: 33 additions & 11 deletions core/terraform/azure-monitor/variables.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
variable "tre_id" {}
variable "location" {}
variable "resource_group_name" {}
variable "shared_subnet_id" {}
variable "azure_monitor_dns_zone_id" {}
variable "azure_monitor_oms_opinsights_dns_zone_id" {}
variable "azure_monitor_ods_opinsights_dns_zone_id" {}
variable "azure_monitor_agentsvc_dns_zone_id" {}
variable "blob_core_dns_zone_id" {}
variable "tre_core_tags" {}
variable "enable_local_debugging" {}
variable "tre_id" {
type = string
}
variable "location" {
type = string
}
variable "resource_group_name" {
type = string
}
variable "shared_subnet_id" {
type = string
}
variable "azure_monitor_dns_zone_id" {
type = string
}
variable "azure_monitor_oms_opinsights_dns_zone_id" {
type = string
}
variable "azure_monitor_ods_opinsights_dns_zone_id" {
type = string
}
variable "azure_monitor_agentsvc_dns_zone_id" {
type = string
}
variable "blob_core_dns_zone_id" {
type = string
}
variable "tre_core_tags" {
type = map(string)
}
variable "enable_local_debugging" {
type = bool
}
20 changes: 15 additions & 5 deletions core/terraform/network/variables.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
variable "tre_id" {}
variable "location" {}
variable "resource_group_name" {}
variable "core_address_space" {}
variable "arm_environment" {}
variable "tre_id" {
type = string
}
variable "location" {
type = string
}
variable "resource_group_name" {
type = string
}
variable "core_address_space" {
type = string
}
variable "arm_environment" {
type = string
}
84 changes: 63 additions & 21 deletions core/terraform/resource_processor/vmss_porter/variables.tf
Original file line number Diff line number Diff line change
@@ -1,24 +1,66 @@
variable "tre_id" {}
variable "location" {}
variable "acr_id" {}
variable "resource_group_name" {}
variable "resource_processor_subnet_id" {}
variable "resource_processor_vmss_porter_image_repository" {}
variable "docker_registry_server" {}
variable "service_bus_namespace_id" {}
variable "service_bus_namespace_fqdn" {}
variable "service_bus_resource_request_queue" {}
variable "service_bus_deployment_status_update_queue" {}
variable "mgmt_storage_account_name" {}
variable "mgmt_resource_group_name" {}
variable "terraform_state_container_name" {}
variable "app_insights_connection_string" {}
variable "key_vault_name" {}
variable "key_vault_url" {}
variable "key_vault_id" {}
variable "resource_processor_number_processes_per_instance" {}
variable "resource_processor_vmss_sku" {}
variable "arm_environment" {}
variable "tre_id" {
type = string
}
variable "location" {
type = string
}
variable "acr_id" {
type = string
}
variable "resource_group_name" {
type = string
}
variable "resource_processor_subnet_id" {
type = string
}
variable "resource_processor_vmss_porter_image_repository" {
type = string
}
variable "docker_registry_server" {
type = string
}
variable "service_bus_namespace_id" {
type = string
}
variable "service_bus_namespace_fqdn" {
type = string
}
variable "service_bus_resource_request_queue" {
type = string
}
variable "service_bus_deployment_status_update_queue" {
type = string
}
variable "mgmt_storage_account_name" {
type = string
}
variable "mgmt_resource_group_name" {
type = string
}
variable "terraform_state_container_name" {
type = string
}
variable "app_insights_connection_string" {
type = string
}
variable "key_vault_name" {
type = string
}
variable "key_vault_url" {
type = string
}
variable "key_vault_id" {
type = string
}
variable "resource_processor_number_processes_per_instance" {
type = string
}
variable "resource_processor_vmss_sku" {
type = string
}
variable "arm_environment" {
type = string
}
variable "subscription_id" {
description = "The subscription id to create the resource processor permission/role. If not supplied will use the TF context."
type = string
Expand Down
2 changes: 1 addition & 1 deletion core/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.4"
__version__ = "0.8.5"
2 changes: 1 addition & 1 deletion templates/shared_services/cyclecloud/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-shared-service-cyclecloud
version: 0.5.1
version: 0.5.2
description: "An Azure TRE Shared Service Template for Azure Cyclecloud"
registry: azuretre
dockerfile: Dockerfile.tmpl
Expand Down
12 changes: 9 additions & 3 deletions templates/shared_services/cyclecloud/terraform/variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
variable "tre_id" {}
variable "tre_resource_id" {}
variable "arm_environment" {}
variable "tre_id" {
type = string
}
variable "tre_resource_id" {
type = string
}
variable "arm_environment" {
type = string
}
2 changes: 1 addition & 1 deletion templates/shared_services/databricks-auth/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-shared-service-databricks-private-auth
version: 0.1.2
version: 0.1.3
description: "An Azure TRE shared service for Azure Databricks authentication."
registry: azuretre
dockerfile: Dockerfile.tmpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ variable "tre_resource_id" {
description = "Unique TRE Resource ID"
}

variable "arm_environment" {}
variable "arm_environment" {
type = string
}
2 changes: 1 addition & 1 deletion templates/shared_services/gitea/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-shared-service-gitea
version: 0.6.2
version: 0.6.3
description: "A Gitea shared service"
dockerfile: Dockerfile.tmpl
registry: azuretre
Expand Down
4 changes: 3 additions & 1 deletion templates/shared_services/gitea/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ variable "acr_name" {
description = "Name of Azure Container Registry"
}

variable "arm_environment" {}
variable "arm_environment" {
type = string
}
2 changes: 1 addition & 1 deletion templates/workspace_services/azureml/porter.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
schemaVersion: 1.0.0
name: tre-service-azureml
version: 0.8.7
version: 0.8.8
description: "An Azure TRE service for Azure Machine Learning"
registry: azuretre
dockerfile: Dockerfile.tmpl
Expand Down
Loading
Loading