Manages a Synapse Azure Integration Runtime.
resource "azurerm_resource_group" "example" {
name = "example"
location = "West Europe"
}
resource "azurerm_storage_account" "example" {
name = "example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "example" {
name = "content"
storage_account_name = azurerm_storage_account.example.name
container_access_type = "private"
}
resource "azurerm_storage_data_lake_gen2_filesystem" "example" {
name = "example"
storage_account_id = azurerm_storage_account.example.id
}
resource "azurerm_synapse_workspace" "example" {
name = "example"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
storage_data_lake_gen2_filesystem_id = azurerm_storage_data_lake_gen2_filesystem.example.id
sql_administrator_login = "sqladminuser"
sql_administrator_login_password = "H@Sh1CoR3!"
managed_virtual_network_enabled = true
identity {
type = "SystemAssigned"
}
}
resource "azurerm_synapse_firewall_rule" "example" {
name = "AllowAll"
synapse_workspace_id = azurerm_synapse_workspace.example.id
start_ip_address = "0.0.0.0"
end_ip_address = "255.255.255.255"
}
resource "azurerm_synapse_integration_runtime_azure" "example" {
name = "example"
synapse_workspace_id = azurerm_synapse_workspace.example.id
location = azurerm_resource_group.example.location
}
The following arguments are supported:
name
- (Required) The name which should be used for this Synapse Azure Integration Runtime. Changing this forces a new Synapse Azure Integration Runtime to be created.
synapse_workspace_id
- (Required) The Synapse Workspace ID in which to associate the Integration Runtime with. Changing this forces a new Synapse Azure Integration Runtime to be created.
location
- (Required) The Azure Region where the Synapse Azure Integration Runtime should exist. Use AutoResolve
to create an auto-resolve integration runtime. Changing this forces a new Synapse Azure Integration Runtime to be created.
compute_type
- (Optional) Compute type of the cluster which will execute data flow job. Valid values are General
, ComputeOptimized
and MemoryOptimized
. Defaults to General
.
core_count
- (Optional) Core count of the cluster which will execute data flow job. Valid values are 8
, 16
, 32
, 48
, 80
, 144
and 272
. Defaults to 8
.
description
- (Optional) Integration runtime description.
time_to_live_min
- (Optional) Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to 0
.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Synapse Azure Integration Runtime.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Synapse Azure Integration Runtime.read
- (Defaults to 5 minutes) Used when retrieving the Synapse Azure Integration Runtime.update
- (Defaults to 30 minutes) Used when updating the Synapse Azure Integration Runtime.delete
- (Defaults to 30 minutes) Used when deleting the Synapse Azure Integration Runtime.Synapse Azure Integration Runtimes can be imported using the resource id
, e.g.
terraform import azurerm_synapse_integration_runtime_azure.example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.Synapse/workspaces/workspace1/integrationRuntimes/IntegrationRuntime1