From 6ae0ba55492bfdb3a757fb407e12d67d59db8ee2 Mon Sep 17 00:00:00 2001 From: Ritika Patil Date: Wed, 25 Oct 2023 15:36:26 -0500 Subject: [PATCH] chore: (IAC-1196) resolving additional errors --- modules/azure_aks/variables.tf | 9 +++++---- modules/azurerm_netapp/outputs.tf | 2 +- modules/azurerm_netapp/variables.tf | 20 +++++++++++--------- modules/azurerm_postgresql_flex/variables.tf | 11 ++++++----- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/modules/azure_aks/variables.tf b/modules/azure_aks/variables.tf index 92795558..be34ef6e 100644 --- a/modules/azure_aks/variables.tf +++ b/modules/azure_aks/variables.tf @@ -11,10 +11,11 @@ variable "aks_cluster_rg" { type = string } -variable "aks_cluster_rg_id" { - description = "The `azurerm_kubernetes_cluster`'s id." - type = string -} +## unused +# variable "aks_cluster_rg_id" { +# description = "The `azurerm_kubernetes_cluster`'s id." +# type = string +# } variable "aks_cluster_dns_prefix" { description = "DNS prefix specified when creating the managed cluster." diff --git a/modules/azurerm_netapp/outputs.tf b/modules/azurerm_netapp/outputs.tf index a9d2530c..75b68b3f 100644 --- a/modules/azurerm_netapp/outputs.tf +++ b/modules/azurerm_netapp/outputs.tf @@ -10,7 +10,7 @@ output "netapp_pool_id" { } output "netapp_endpoint" { - value = azurerm_netapp_volume.anf.mount_ip_addresses.0 + value = azurerm_netapp_volume.anf.mount_ip_addresses[0] } output "netapp_path" { diff --git a/modules/azurerm_netapp/variables.tf b/modules/azurerm_netapp/variables.tf index 719a6d60..bfc4f0e7 100644 --- a/modules/azurerm_netapp/variables.tf +++ b/modules/azurerm_netapp/variables.tf @@ -1,11 +1,12 @@ # Copyright © 2020-2023, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 -variable create_netapp { - description = "Boolean flag to create Azure NetApp Files" - type = bool - default = false -} +#unused +# variable create_netapp { +# description = "Boolean flag to create Azure NetApp Files" +# type = bool +# default = false +# } variable "prefix" { description = "A prefix used in the name for all the Azure resources created by this script." @@ -22,10 +23,11 @@ variable "location" { type = string } -variable "vnet_name" { - description = "Azure Virtual Network" - type = string -} +#unused +# variable "vnet_name" { +# description = "Azure Virtual Network" +# type = string +# } variable "subnet_id" { description = "Azure subnet id for Azure NetApp Files" diff --git a/modules/azurerm_postgresql_flex/variables.tf b/modules/azurerm_postgresql_flex/variables.tf index 6e43fdc2..64031d2d 100644 --- a/modules/azurerm_postgresql_flex/variables.tf +++ b/modules/azurerm_postgresql_flex/variables.tf @@ -99,8 +99,9 @@ variable "delegated_subnet_id" { type = string } -variable "private_dns_zone_id" { - description = "The ID of the private DNS zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created." - type = string - default = null -} +#unused +# variable "private_dns_zone_id" { +# description = "The ID of the private DNS zone to create the PostgreSQL Flexible Server. Changing this forces a new PostgreSQL Flexible Server to be created." +# type = string +# default = null +# }