File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 11resource "azurerm_log_analytics_workspace" "main" {
22 count = local. create_analytics_workspace ? 1 : 0
33
4- location = coalesce ( var. location , data . azurerm_resource_group . main . location )
4+ location = var. location
55 name = coalesce (var. cluster_log_analytics_workspace_name , trim (" ${ var . prefix } -workspace" , " -" ))
66 resource_group_name = coalesce (var. log_analytics_workspace_resource_group_name , var. resource_group_name )
77 allow_resource_only_permissions = var. log_analytics_workspace_allow_resource_only_permissions
Original file line number Diff line number Diff line change 1- data "azurerm_resource_group" "main" {
2- name = var. resource_group_name
3- }
4-
51moved {
62 from = module. ssh-key . tls_private_key . ssh
73 to = tls_private_key. ssh [0 ]
@@ -15,9 +11,9 @@ resource "tls_private_key" "ssh" {
1511}
1612
1713resource "azurerm_kubernetes_cluster" "main" {
18- location = coalesce ( var. location , data . azurerm_resource_group . main . location )
14+ location = var. location
1915 name = " ${ local . cluster_name } ${ var . cluster_name_random_suffix ? substr (md5 (uuid ()), 0 , 4 ) : " " } "
20- resource_group_name = data . azurerm_resource_group . main . name
16+ resource_group_name = var . resource_group_name
2117 azure_policy_enabled = var. azure_policy_enabled
2218 cost_analysis_enabled = var. cost_analysis_enabled
2319 disk_encryption_set_id = var. disk_encryption_set_id
Original file line number Diff line number Diff line change 11variable "resource_group_name" {
22 type = string
3- description = " The resource group name to be imported "
3+ description = " The existing resource group name to use "
44}
55
66variable "aci_connector_linux_enabled" {
@@ -671,7 +671,6 @@ variable "local_account_disabled" {
671671
672672variable "location" {
673673 type = string
674- default = null
675674 description = " Location of cluster, if not defined it will be read from the resource-group"
676675}
677676
You can’t perform that action at this time.
0 commit comments