Skip to content

Commit

Permalink
Allow all IPs to Synapse workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
nickclyde committed Nov 8, 2023
1 parent 947948a commit e4da8db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions terraform/modules/shared/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -620,13 +620,6 @@ resource "azurerm_synapse_workspace" "phdi" {
}
}

resource "azurerm_synapse_firewall_rule" "allow_azure_services" {
name = "AllowAllWindowsAzureIps"
synapse_workspace_id = azurerm_synapse_workspace.phdi.id
start_ip_address = "0.0.0.0"
end_ip_address = "0.0.0.0"
}

resource "azurerm_synapse_spark_pool" "phdi" {
name = "sparkpool"
synapse_workspace_id = azurerm_synapse_workspace.phdi.id
Expand Down Expand Up @@ -666,6 +659,13 @@ EOF
}
}

resource "azurerm_synapse_firewall_rule" "synapse_firewall_rule" {
name = "AllowAll"
synapse_workspace_id = azurerm_synapse_workspace.phdi.id
start_ip_address = "0.0.0.0"
end_ip_address = "255.255.255.255"
}

resource "azurerm_role_assignment" "synapse_blob_contributor" {
scope = azurerm_storage_account.phi.id
role_definition_name = "Storage Blob Data Contributor"
Expand Down

0 comments on commit e4da8db

Please sign in to comment.