Skip to content

Commit ca9ccee

Browse files
feat: workload IaC
1 parent 70f7e6f commit ca9ccee

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

infrastructure/modules/container-apps/data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ data "azurerm_private_dns_zone" "storage-account-blob" {
2424

2525
data "azurerm_private_dns_zone" "storage-account-queue" {
2626
count = var.features.private_networking ? 1 : 0
27-
27+
2828
provider = azurerm.hub
2929

3030
name = "privatelink.queue.core.windows.net"

infrastructure/modules/container-apps/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ locals {
180180
}
181181

182182
storage_account_name = "st${var.app_short_name}${var.environment}uks"
183-
storage_containers = {}
184-
storage_queues = []
183+
storage_containers = {}
184+
storage_queues = []
185185
}

infrastructure/terraform/main.tf

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,20 @@ module "container-apps" {
3939
enable_auth = var.enable_auth
4040
environment = var.environment
4141
env_config = var.env_config
42+
features = var.features
4243
fetch_secrets_from_app_key_vault = var.fetch_secrets_from_app_key_vault
4344
front_door_profile = var.front_door_profile
4445
hub = var.hub
4546
log_analytics_workspace_audit_id = var.deploy_infra ? module.infra[0].log_analytics_workspace_audit_id : data.azurerm_log_analytics_workspace.audit[0].id
4647
postgres_backup_retention_days = var.postgres_backup_retention_days
4748
postgres_geo_redundant_backup_enabled = var.postgres_geo_redundant_backup_enabled
4849
postgres_sku_name = var.postgres_sku_name
49-
# postgres_sql_admin_group = "postgres_${var.app_short_name}_${var.env_config}_uks_admin"
50-
postgres_sql_admin_group = "Azure-Lung-Cancer-Screening---Dev-Owner"
51-
postgres_storage_mb = var.postgres_storage_mb
52-
postgres_storage_tier = var.postgres_storage_tier
53-
postgres_subnet_id = var.deploy_infra ? module.infra[0].postgres_subnet_id : data.azurerm_subnet.postgres[0].id
54-
main_subnet_id = var.deploy_infra ? module.infra[0].main_subnet_id : data.azurerm_subnet.main[0].id
55-
seed_demo_data = var.seed_demo_data
56-
use_apex_domain = var.use_apex_domain
50+
# postgres_sql_admin_group = "postgres_${var.app_short_name}_${var.env_config}_uks_admin"
51+
postgres_sql_admin_group = "Azure-Lung-Cancer-Screening---Dev-Owner"
52+
postgres_storage_mb = var.postgres_storage_mb
53+
postgres_storage_tier = var.postgres_storage_tier
54+
postgres_subnet_id = var.deploy_infra ? module.infra[0].postgres_subnet_id : data.azurerm_subnet.postgres[0].id
55+
main_subnet_id = var.deploy_infra ? module.infra[0].main_subnet_id : data.azurerm_subnet.main[0].id
56+
seed_demo_data = var.seed_demo_data
57+
use_apex_domain = var.use_apex_domain
5758
}

0 commit comments

Comments
 (0)