Skip to content

Commit dcade94

Browse files
authored
Merge pull request #11 from data-platform-hq/feat/add-mdp-and-dev-center
feat: add managed devops pool and dev center
2 parents e045608 + 6747f58 commit dcade94

File tree

4 files changed

+74
-1
lines changed

4 files changed

+74
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ No resources.
3434
| <a name="input_dashboards"></a> [dashboards](#input\_dashboards) | Set of unique strings to create Dashboards full names | `set(string)` | `[]` | no |
3535
| <a name="input_data_factories"></a> [data\_factories](#input\_data\_factories) | Set of unique strings to create Data Factories full names | `set(string)` | `[]` | no |
3636
| <a name="input_databricks_workspaces"></a> [databricks\_workspaces](#input\_databricks\_workspaces) | Set of unique strings to create Databricks Workspaces full names | `set(string)` | `[]` | no |
37+
| <a name="input_dev_center_projects"></a> [dev\_center\_projects](#input\_dev\_center\_projects) | Set of unique strings to create Dev Center Project full names | `set(string)` | `[]` | no |
38+
| <a name="input_dev_centers"></a> [dev\_centers](#input\_dev\_centers) | Set of unique strings to create Dev Center full names | `set(string)` | `[]` | no |
3739
| <a name="input_environment"></a> [environment](#input\_environment) | Environment/Subscription name | `string` | n/a | yes |
3840
| <a name="input_instance_number"></a> [instance\_number](#input\_instance\_number) | Instance number of deployment | `string` | `"1"` | no |
3941
| <a name="input_internal_load_balancers"></a> [internal\_load\_balancers](#input\_internal\_load\_balancers) | Set of unique strings to create Internal Load Balancers full names | `set(string)` | `[]` | no |
@@ -42,6 +44,7 @@ No resources.
4244
| <a name="input_linux_virtual_machines"></a> [linux\_virtual\_machines](#input\_linux\_virtual\_machines) | Set of unique strings to create Linux Virtual Machines full names | `set(string)` | `[]` | no |
4345
| <a name="input_location"></a> [location](#input\_location) | Azure Region | `string` | n/a | yes |
4446
| <a name="input_log_analytics_workspaces"></a> [log\_analytics\_workspaces](#input\_log\_analytics\_workspaces) | Set of unique strings to create Log Analytics Workspaces full names | `set(string)` | `[]` | no |
47+
| <a name="input_managed_devops_pools"></a> [managed\_devops\_pools](#input\_managed\_devops\_pools) | Set of unique strings to create Managed DevOps Pool full names | `set(string)` | `[]` | no |
4548
| <a name="input_mssql_databases"></a> [mssql\_databases](#input\_mssql\_databases) | Set of unique strings to create MSSQL Databases full names | `set(string)` | `[]` | no |
4649
| <a name="input_mssql_servers"></a> [mssql\_servers](#input\_mssql\_servers) | Set of unique strings to create MSSQL Servers full names | `set(string)` | `[]` | no |
4750
| <a name="input_nat_gateways"></a> [nat\_gateways](#input\_nat\_gateways) | Set of unique strings to create Nat Gateways full names | `set(string)` | `[]` | no |
@@ -75,6 +78,10 @@ No resources.
7578
| <a name="output_data_factory"></a> [data\_factory](#output\_data\_factory) | Built name of single Data Factory |
7679
| <a name="output_databricks_workspace"></a> [databricks\_workspace](#output\_databricks\_workspace) | Built name of single Databricks Workspace |
7780
| <a name="output_databricks_workspaces"></a> [databricks\_workspaces](#output\_databricks\_workspaces) | Built name of multiple Databricks Workspaces with unique particle |
81+
| <a name="output_dev_center"></a> [dev\_center](#output\_dev\_center) | Built name of single Dev Center |
82+
| <a name="output_dev_center_project"></a> [dev\_center\_project](#output\_dev\_center\_project) | Built name of single Dev Center Project |
83+
| <a name="output_dev_center_projects"></a> [dev\_center\_projects](#output\_dev\_center\_projects) | Built name of multiple Dev Center Projects with unique particle |
84+
| <a name="output_dev_centers"></a> [dev\_centers](#output\_dev\_centers) | Built name of multiple Dev Centers with unique particle |
7885
| <a name="output_internal_load_balancer"></a> [internal\_load\_balancer](#output\_internal\_load\_balancer) | Built name of single Internal Load Balancer |
7986
| <a name="output_internal_load_balancers"></a> [internal\_load\_balancers](#output\_internal\_load\_balancers) | Built name of multiple Internal Load Balancers with unique particle |
8087
| <a name="output_key_vault"></a> [key\_vault](#output\_key\_vault) | Built name of single Key Vault |
@@ -85,6 +92,8 @@ No resources.
8592
| <a name="output_linux_virtual_machines"></a> [linux\_virtual\_machines](#output\_linux\_virtual\_machines) | Built name of multiple Linux Virtual Machines with unique particle |
8693
| <a name="output_log_analytics_workspace"></a> [log\_analytics\_workspace](#output\_log\_analytics\_workspace) | Built name of single Log Analytics Workspace |
8794
| <a name="output_log_analytics_workspaces"></a> [log\_analytics\_workspaces](#output\_log\_analytics\_workspaces) | Built name of multiple Log Analytics Workspaces with unique particle |
95+
| <a name="output_managed_devops_pool"></a> [managed\_devops\_pool](#output\_managed\_devops\_pool) | Built name of single Managed DevOps pool |
96+
| <a name="output_managed_devops_pools"></a> [managed\_devops\_pools](#output\_managed\_devops\_pools) | Built name of multiple Managed DevOps Pools with unique particle |
8897
| <a name="output_mssql_database"></a> [mssql\_database](#output\_mssql\_database) | Built name of single MSSQL Database |
8998
| <a name="output_mssql_databases"></a> [mssql\_databases](#output\_mssql\_databases) | Built name of multiple MSSQL Databases with unique particle |
9099
| <a name="output_mssql_server"></a> [mssql\_server](#output\_mssql\_server) | Built name of single MSSQL Server |

main.tf

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ locals {
1515
network_security_group = substr(join("-", compact(["nsg", var.project, var.environment, var.location, var.instance_number])), 0, 80)
1616
network_security_groups = { for item in var.network_security_groups : item => substr(join("-", compact(["nsg", var.project, item, var.environment, var.location, var.instance_number])), 0, 80) }
1717

18-
# Application Security Groups
18+
# Application Security Groups
1919
application_security_group = substr(join("-", compact(["asg", var.project, var.environment, var.location, var.instance_number])), 0, 80)
2020
application_security_groups = { for item in var.application_security_groups : item => substr(join("-", compact(["asg", var.project, item, var.environment, var.location, var.instance_number])), 0, 80) }
2121

@@ -102,6 +102,19 @@ locals {
102102
# User Assigned Identity
103103
user_assigned_identity = substr(join("-", compact(["id", var.project, var.environment, var.location, var.instance_number])), 0, 63)
104104
user_assigned_identities = { for item in var.user_assigned_identities : item => substr(join("-", compact(["id", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
105+
106+
# Dev Center
107+
dev_center = substr(join("-", compact(["dc", var.project, var.environment,
108+
var.location, var.instance_number])), 0, 26)
109+
dev_centers = { for item in var.dev_centers : item => substr(join("-", compact(["dc", var.project, item, var.environment, var.location, var.instance_number])), 0, 26) }
110+
111+
# Dev Center Project
112+
dev_center_project = substr(join("-", compact(["dcp", var.project, var.environment, var.location, var.instance_number])), 0, 63)
113+
dev_center_projects = { for item in var.dev_center_projects : item => substr(join("-", compact(["dcp", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
114+
115+
# Managed DevOps Pool
116+
managed_devops_pool = substr(join("-", compact(["mdp", var.project, var.environment, var.location, var.instance_number])), 0, 63)
117+
managed_devops_pools = { for item in var.managed_devops_pools : item => substr(join("-", compact(["mdp", var.project, item, var.environment, var.location, var.instance_number])), 0, 63) }
105118
}
106119

107120
locals {

outputs.tf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,3 +283,36 @@ output "user_assigned_identities" {
283283
description = "Built name of multiple User Assigned Identities with unique particle"
284284
value = local.user_assigned_identities
285285
}
286+
287+
# Dev Center
288+
output "dev_center" {
289+
description = "Built name of single Dev Center"
290+
value = local.dev_center
291+
}
292+
293+
output "dev_centers" {
294+
description = "Built name of multiple Dev Centers with unique particle"
295+
value = local.dev_centers
296+
}
297+
298+
# Dev Center Project
299+
output "dev_center_project" {
300+
description = "Built name of single Dev Center Project"
301+
value = local.dev_center_project
302+
}
303+
304+
output "dev_center_projects" {
305+
description = "Built name of multiple Dev Center Projects with unique particle"
306+
value = local.dev_center_projects
307+
}
308+
309+
# Managed DevOps Pool
310+
output "managed_devops_pool" {
311+
description = "Built name of single Managed DevOps pool"
312+
value = local.managed_devops_pool
313+
}
314+
315+
output "managed_devops_pools" {
316+
description = "Built name of multiple Managed DevOps Pools with unique particle"
317+
value = local.managed_devops_pools
318+
}

variables.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,21 @@ variable "application_security_groups" {
174174
description = "Set of unique strings to create Application Security Groups full names"
175175
default = []
176176
}
177+
178+
variable "dev_centers" {
179+
type = set(string)
180+
description = "Set of unique strings to create Dev Center full names"
181+
default = []
182+
}
183+
184+
variable "dev_center_projects" {
185+
type = set(string)
186+
description = "Set of unique strings to create Dev Center Project full names"
187+
default = []
188+
}
189+
190+
variable "managed_devops_pools" {
191+
type = set(string)
192+
description = "Set of unique strings to create Managed DevOps Pool full names"
193+
default = []
194+
}

0 commit comments

Comments
 (0)