Skip to content

andrewCluey/terraform-azurerm-datafactory

Repository files navigation

terraform-azurerm-datafactory

Changes in this version: - Added optional element to add Azure integrated runtimes.

Future changes to include:

Example - default

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "= 3.29.0"
    }
  }
}

provider "azurerm" {
  features {}
}


resource "azurerm_resource_group" "rg" {
  name     = "rg-def-ex-adf"
  location = "uksouth"
}

module "test_default_adf" {
  source                          = "../../"
  name                            = "adf-def-ex-s2w"
  resource_group_name             = azurerm_resource_group.rg.name
  location                        = azurerm_resource_group.rg.location
}

Inputs

Name Description Type Default Required
azure_integration_runtime Map Object to define any Azure Integration Runtime nodes that required.
key of each object is the name of a new node.
configuration parameters within the object allow customisation.
EXAMPLE:
azure_integration_runtime = {
az-ir-co-01 {
"compute_type" . = "ComputeOptimized"
"cleanup_enabled" = true
core_count = 16
},
az-ir-gen-01 {},
az-ir-gen-02 {},
}
map(object({
description = optional(string, "Azure Integrated Runtime")
compute_type = optional(string, "General")
virtual_network_enabled = optional(string, true)
core_count = optional(number, 8)
time_to_live_min = optional(number, 0)
cleanup_enabled = optional(bool, true)
}))
{} no
customer_managed_key_id Specifies the Azure Key Vault Key ID to be used as the Customer Managed Key (CMK) for double encryption. Required with user assigned identity. string null no
customer_managed_key_identity_id Specifies the ID of the user assigned identity associated with the Customer Managed Key. Must be supplied if customer_managed_key_id is set. string null no
github_configuration An input object to define the settings for connecting to GitHub. NOTE! You must log in to the Data Factory management UI to complete the authentication to the GitHub repository.
object({
git_url = optional(string) # - OPTIONAL: Specifies the GitHub Enterprise host name. Defaults to "https://github.com"
account_name = optional(string) # - REQUIRED: Specifies the GitHub account name. Defaults to ''
repository_name = optional(string) # - REQUIRED: Specifies the name of the git repository.
branch_name = optional(string) # - OPTIONAL: Specifies the branch of the repository to get code from. Defaults to 'main'
root_folder = optional(string) # - OPTIONAL: Specifies the root folder within the repository. Defaults to '/' for top level.
})
null no
global_parameters An input object to define a global parameter. Accepts multiple entries. any {} no
location The Azure Region where the Data Factory is to be deployed. string "uksouth" no
managed_virtual_network_enabled Is Managed Virtual Network enabled? bool true no
name The name to assign to the new Azure Data Factory. string n/a yes
public_network_enabled (Optional) Is the Data Factory visible to the public network? Defaults to true bool false no
resource_group_name The name of the Resource group where the Data Factory will be deployed. string n/a yes
tags A map of tags to assign to the new resources. map(string) {} no

Outputs

Name Description
global_paramaters A map showing any created Global Parameters.
id The ID of the new Datafactory resource.
name The name of the newly created Azure Data Factory

About

Deploys a single Datafactory instance in Azure.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages