Incorporate review feedback

This commit is contained in:
Paul Jewell
2023-10-16 15:12:22 -04:00
parent 9a5792ab3f
commit 60bba8f8af
5 changed files with 96 additions and 101 deletions

View File

@ -1,19 +1,41 @@
variable "prefix" {
variable "resource_group_name_prefix" {
type = string
default = "managed-lustre-file-system"
description = "Prefix of the resource name"
default = "rg"
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
}
variable "rg_location" {
variable "resource_group_location" {
type = string
default = "eastus"
description = "Resource group location"
description = "Location of the resource group."
}
variable "virtual_network_name" {
type = string
description = "The name of the virtual network resource. The value will be randomly generated if blank."
default = ""
}
variable "subnet_name" {
type = string
description = "The name of the virtual network subnet. The value will be randomly generated if blank."
default = ""
}
variable "amlfs_name" {
type = string
description = "The name of the Manage Lustre file system resource. The value will be randomly generated if blank."
default = ""
}
variable "amlfs_sku_name" {
type = string
default = "AMLFS-Durable-Premium-40"
description = "SKU name for the Azure Managed Lustre file system"
validation {
condition = contains(["AMLFS-Durable-Premium-40", "AMLFS-Durable-Premium-125", "AMLFS-Durable-Premium-250", "AMLFS-Durable-Premium-500"], var.amlfs_sku_name)
error_message = "The SKU value must be one of the following: AMLFS-Durable-Premium-40, AMLFS-Durable-Premium-125, AMLFS-Durable-Premium-250, AMLFS-Durable-Premium-500."
}
description = "SKU name for the Azure Managed Lustre file system."
}
variable "amlfs_storage_capacity_in_tb" {
@ -25,11 +47,15 @@ variable "amlfs_storage_capacity_in_tb" {
variable "amlfs_maintenance_day_of_week" {
type = string
default = "Saturday"
description = "Day of the week on which the maintenance window will occur"
validation {
condition = contains(["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], var.amlfs_maintenance_day_of_week)
error_message = "The maintenance day of week value must be one of the following: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday."
}
description = "Day of the week on which the maintenance window will occur."
}
variable "amlfs_maintenance_time_of_day" {
type = string
default = "02:00"
description = "The time of day (in UTC) to start the maintenance window"
description = "The time of day (in UTC) to start the maintenance window."
}