diff --git a/azurerm/modules/azurerm-adf/README.md b/azurerm/modules/azurerm-adf/README.md index 9f06fd2f..3317b5dc 100644 --- a/azurerm/modules/azurerm-adf/README.md +++ b/azurerm/modules/azurerm-adf/README.md @@ -69,7 +69,7 @@ terraform init -backend-config=./backend.local.tfvars | Name | Version | |------|---------| -| [azurerm](#provider\_azurerm) | ~> 3.0 | +| [azurerm](#provider\_azurerm) | 3.51.0 | ## Modules @@ -88,10 +88,11 @@ No modules. |------|-------------|------|---------|:--------:| | [adf\_idenity](#input\_adf\_idenity) | Enable identity block in module. | `bool` | `true` | no | | [branch\_name](#input\_branch\_name) | Specifies repository branch to use as the collaboration branch. | `string` | `"main"` | no | -| [create\_adf](#input\_create\_adf) | set value Whether to create a adf or not | `bool` | `true` | no | +| [create\_adf](#input\_create\_adf) | Set value whether to create a Data Factory or not. | `bool` | `true` | no | | [git\_integration](#input\_git\_integration) | Integrate a git repository with ADF. Can be null, github or vsts (use vsts for Azure DevOps Repos). | `string` | `"null"` | no | | [github\_account\_name](#input\_github\_account\_name) | Specifies the GitHub account name. | `string` | `"amido"` | no | | [github\_url](#input\_github\_url) | Specifies the GitHub Enterprise host name. For example: https://github.mydomain.com. Use https://github.com for open source repositories. | `string` | `"https://github.com"` | no | +| [global\_parameter](#input\_global\_parameter) | Specifies whether to add global parameters to ADF |
list(object({|
name = string
type = string
value = string
}))
[| no | | [identity\_ids](#input\_identity\_ids) | Specifies a list of User Assigned Managed Identity IDs to be assigned to this Data Factory. | `list(string)` | `[]` | no | | [identity\_type](#input\_identity\_type) | Specifies the type of Managed Service Identity that should be configured on this Data Factory. Possible values are SystemAssigned, UserAssigned, SystemAssigned,UserAssigned (to enable both). | `string` | `"SystemAssigned"` | no | | [managed\_virtual\_network\_enabled](#input\_managed\_virtual\_network\_enabled) | Is Managed Virtual Network enabled? | `bool` | `false` | no | @@ -99,7 +100,7 @@ No modules. | [public\_network\_enabled](#input\_public\_network\_enabled) | Is the Data Factory visible to the public network? Defaults to true | `bool` | `true` | no | | [repository\_name](#input\_repository\_name) | Specifies the name of the git repository. | `string` | `"stacks-data-infrastructure"` | no | | [resource\_group\_location](#input\_resource\_group\_location) | Location of Resource group | `string` | `"uksouth"` | no | -| [resource\_group\_name](#input\_resource\_group\_name) | name of resource group | `string` | n/a | yes | +| [resource\_group\_name](#input\_resource\_group\_name) | Name of resource group | `string` | n/a | yes | | [resource\_namer](#input\_resource\_namer) | User defined naming convention applied to all resources created as part of this module | `string` | n/a | yes | | [resource\_tags](#input\_resource\_tags) | Map of tags to be applied to all resources created as part of this module | `map(string)` | `{}` | no | | [root\_folder](#input\_root\_folder) | Specifies the root folder within the repository. Set to / for the top level. | `string` | `"/adf_managed"` | no | diff --git a/azurerm/modules/azurerm-adf/example/providers.tf b/azurerm/modules/azurerm-adf/example/providers.tf index 15b5b9c8..01368d7f 100644 --- a/azurerm/modules/azurerm-adf/example/providers.tf +++ b/azurerm/modules/azurerm-adf/example/providers.tf @@ -3,7 +3,7 @@ terraform { resource_group_name = "tfstateresourcegroup" storage_account_name = "tfstate" container_name = "tfstate" - key = "newadf.terraform.tfstate" + key = "lates.terraform.tfstate" } } diff --git a/azurerm/modules/azurerm-adf/main.tf b/azurerm/modules/azurerm-adf/main.tf index fde79074..f95f4101 100644 --- a/azurerm/modules/azurerm-adf/main.tf +++ b/azurerm/modules/azurerm-adf/main.tf @@ -49,6 +49,18 @@ resource "azurerm_data_factory" "example" { } } + + #global parameter configuration + dynamic "global_parameter" { + + for_each = { for i in var.global_parameter : i.name => i } + content { + name = global_parameter.key + type = global_parameter.value.type + value = global_parameter.value.value + } + } + tags = var.resource_tags lifecycle { ignore_changes = [ diff --git a/azurerm/modules/azurerm-adf/vars.tf b/azurerm/modules/azurerm-adf/vars.tf index 0a905ba0..9c507af3 100644 --- a/azurerm/modules/azurerm-adf/vars.tf +++ b/azurerm/modules/azurerm-adf/vars.tf @@ -83,6 +83,25 @@ variable "managed_virtual_network_enabled" { description = "Is Managed Virtual Network enabled?" } +########################### +# Global parameter for ADF SETTINGS +########################## + + +variable "global_parameter" { + type = list(object({ + name = string + type = string + value = string + })) + description = "Specifies whether to add global parameters to ADF" + default = [{ + name = "environment" + type = "String" + value = "nonprod" + } + ] +} ########################### # ADF GIT INTEGRATION SETTINGS ##########################
{
"name": "environment",
"type": "String",
"value": "nonprod"
}
]