Skip to content

Commit

Permalink
fixed: updated
Browse files Browse the repository at this point in the history
  • Loading branch information
“Rishikesh committed Apr 11, 2023
1 parent bb66ec4 commit c50a2f5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 35 deletions.
7 changes: 2 additions & 5 deletions azurerm/modules/azurerm-adf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ terraform init -backend-config=./backend.local.tfvars

| Name | Version |
|------|---------|
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | ~> 3.0 |
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.51.0 |

## Modules

Expand All @@ -86,16 +86,13 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_add_global_parameter"></a> [add\_global\_parameter](#input\_add\_global\_parameter) | Specifies whether to add global parameters to ADF | `bool` | `true` | no |
| <a name="input_adf_idenity"></a> [adf\_idenity](#input\_adf\_idenity) | Enable identity block in module. | `bool` | `true` | no |
| <a name="input_branch_name"></a> [branch\_name](#input\_branch\_name) | Specifies repository branch to use as the collaboration branch. | `string` | `"main"` | no |
| <a name="input_create_adf"></a> [create\_adf](#input\_create\_adf) | Set value whether to create a Data Factory or not. | `bool` | `true` | no |
| <a name="input_git_integration"></a> [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 |
| <a name="input_github_account_name"></a> [github\_account\_name](#input\_github\_account\_name) | Specifies the GitHub account name. | `string` | `"amido"` | no |
| <a name="input_github_url"></a> [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 |
| <a name="input_global_parameter_name"></a> [global\_parameter\_name](#input\_global\_parameter\_name) | Specifies the global parameter name. | `string` | `""` | no |
| <a name="input_global_parameter_type"></a> [global\_parameter\_type](#input\_global\_parameter\_type) | Specifies the global parameter type. Possible Values are Array, Bool, Float, Int, Object or String. | `string` | `""` | no |
| <a name="input_global_parameter_value"></a> [global\_parameter\_value](#input\_global\_parameter\_value) | Specifies the global parameter value. | `string` | `""` | no |
| <a name="input_global_parameter"></a> [global\_parameter](#input\_global\_parameter) | Specifies whether to add global parameters to ADF | <pre>list(object({<br> name = string<br> type = string<br> value = string<br> }))</pre> | <pre>[<br> {<br> "name": "environment",<br> "type": "String",<br> "value": "nonprod"<br> }<br>]</pre> | no |
| <a name="input_identity_ids"></a> [identity\_ids](#input\_identity\_ids) | Specifies a list of User Assigned Managed Identity IDs to be assigned to this Data Factory. | `list(string)` | `[]` | no |
| <a name="input_identity_type"></a> [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 |
| <a name="input_managed_virtual_network_enabled"></a> [managed\_virtual\_network\_enabled](#input\_managed\_virtual\_network\_enabled) | Is Managed Virtual Network enabled? | `bool` | `false` | no |
Expand Down
2 changes: 1 addition & 1 deletion azurerm/modules/azurerm-adf/example/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
resource_group_name = "tfstateresourcegroup"
storage_account_name = "tfstate"
container_name = "tfstate"
key = "newadf.terraform.tfstate"
key = "lates.terraform.tfstate"
}
}

Expand Down
8 changes: 4 additions & 4 deletions azurerm/modules/azurerm-adf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ resource "azurerm_data_factory" "example" {
#global parameter configuration
dynamic "global_parameter" {

for_each = var.add_global_parameter ? toset([1]) : toset([])
for_each = { for i in var.global_parameter : i.name => i }
content {
name = var.global_parameter_name
type = var.global_parameter_type
value = var.global_parameter_value
name = global_parameter.key
type = global_parameter.value.type
value = global_parameter.value.value
}
}

Expand Down
38 changes: 13 additions & 25 deletions azurerm/modules/azurerm-adf/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,33 +87,21 @@ variable "managed_virtual_network_enabled" {
# Global parameter for ADF SETTINGS
##########################

variable "add_global_parameter" {
type = bool
default = true
description = "Specifies whether to add global parameters to ADF"

}


variable "global_parameter_name" {
type = string
default = ""
description = "Specifies the global parameter name."
}

variable "global_parameter_type" {
type = string
default = ""
description = "Specifies the global parameter type. Possible Values are Array, Bool, Float, Int, Object or String."
}


variable "global_parameter_value" {
type = string
default = ""
description = "Specifies the global parameter value."
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
##########################
Expand Down

0 comments on commit c50a2f5

Please sign in to comment.