Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking β€œSign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/changeresourcegourp #56

Merged
merged 6 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: added runtime
  • Loading branch information
β€œRishikesh committed May 23, 2023
commit 9e69143dc467de013313b14798e504d34b3e2486
6 changes: 5 additions & 1 deletion azurerm/modules/azurerm-adf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ terraform workspace select dev || terraform workspace new dev
```

terraform init -backend-config=./backend.local.tfvars

## Requirements

| Name | Version |
Expand All @@ -69,7 +70,7 @@ terraform init -backend-config=./backend.local.tfvars

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

## Modules

Expand All @@ -80,13 +81,15 @@ No modules.
| Name | Type |
|------|------|
| [azurerm_data_factory.example](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/data_factory) | resource |
| [azurerm_data_factory_integration_runtime_azure.example](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/data_factory_integration_runtime_azure) | resource |
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/client_config) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_adf_idenity"></a> [adf\_idenity](#input\_adf\_idenity) | Enable identity block in module. | `bool` | `true` | no |
| <a name="input_adf_runtime_name"></a> [adf\_runtime\_name](#input\_adf\_runtime\_name) | Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions. | `string` | `"adf-managed-vnet-runtime"` | 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 |
Expand All @@ -104,6 +107,7 @@ No modules.
| <a name="input_resource_namer"></a> [resource\_namer](#input\_resource\_namer) | User defined naming convention applied to all resources created as part of this module | `string` | n/a | yes |
| <a name="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags) | Map of tags to be applied to all resources created as part of this module | `map(string)` | `{}` | no |
| <a name="input_root_folder"></a> [root\_folder](#input\_root\_folder) | Specifies the root folder within the repository. Set to / for the top level. | `string` | `"/adf_managed"` | no |
| <a name="input_runtime_virtual_network_enabled"></a> [runtime\_virtual\_network\_enabled](#input\_runtime\_virtual\_network\_enabled) | Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created. | `bool` | `true` | no |
| <a name="input_vsts_account_name"></a> [vsts\_account\_name](#input\_vsts\_account\_name) | Specifies the VSTS / Azure DevOps account name. | `string` | `"amido"` | no |
| <a name="input_vsts_project_name"></a> [vsts\_project\_name](#input\_vsts\_project\_name) | Specifies the name of the VSTS / Azure DevOps project. | `string` | `"amido-stacks"` | no |

Expand Down
8 changes: 8 additions & 0 deletions azurerm/modules/azurerm-adf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,11 @@ resource "azurerm_data_factory" "example" {
]
}
}

resource "azurerm_data_factory_integration_runtime_azure" "example" {
count = var.managed_virtual_network_enabled ? 1 : 0
name = var.adf_runtime_name
data_factory_id = azurerm_data_factory.example[0].id
location = var.resource_group_location
virtual_network_enabled = var.runtime_virtual_network_enabled
}
13 changes: 13 additions & 0 deletions azurerm/modules/azurerm-adf/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ variable "managed_virtual_network_enabled" {
description = "Is Managed Virtual Network enabled?"
}

variable "adf_runtime_name" {
type = string
default = "adf-managed-vnet-runtime"
description = "Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the Microsoft documentation for all restrictions."
}

variable "runtime_virtual_network_enabled" {
type = bool
default = true
description = "Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created."
}


###########################
# Global parameter for ADF SETTINGS
##########################
Expand Down