Skip to content

Commit

Permalink
feat: New vars on container
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrss committed Sep 18, 2024
1 parent e207b5a commit f3d3aa0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/core/21_appservice_container.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ locals {
AZUREAD_ADGROUP = "fat-${var.env_short}-adgroup-"
STORAGE_CONNECTIONSTRING = "@Microsoft.KeyVault(VaultName=${module.key_vault_app.name};SecretName=RelStorageConnectionString)"
STORAGE_REL_FOLDER = "rel"

STORAGE_DOCUMENTI_CONNECTIONSTRING = "@Microsoft.KeyVault(VaultName=${module.key_vault_app.name};SecretName=DlsStorageConnectionString)"
STORAGE_DOCUMENTI_FOLDER = "reportaccertamenti"
SYNAPSE_WORKSPACE_NAME = azurerm_synapse_workspace.this.name
PIPELINE_NAME_SAP = "SendJsonToSap",
SYNAPSE_SUBSCRIPTIONID = data.azurerm_client_config.current.subscription_id
SYNAPSE_RESOURCEGROUPNAME = azurerm_synapse_workspace.this.resource_group_name
}
}
}
Expand Down Expand Up @@ -93,6 +100,12 @@ resource "azurerm_linux_web_app" "app_api_container" {
tags = var.tags
}

resource "azurerm_synapse_role_assignment" "api_synapse_user_container" {
synapse_workspace_id = azurerm_synapse_workspace.this.id
role_name = "Synapse User"
principal_id = azurerm_linux_web_app.app_api_container.identity[0].principal_id
}

# vnet integration
resource "azurerm_app_service_virtual_network_swift_connection" "app_api_container" {
app_service_id = azurerm_linux_web_app.app_api_container.id
Expand Down

0 comments on commit f3d3aa0

Please sign in to comment.