116 lines
2.4 KiB
HCL
116 lines
2.4 KiB
HCL
# Azure Storage Module Variables
|
|
|
|
variable "resource_group_name" {
|
|
description = "Name of the resource group"
|
|
type = string
|
|
}
|
|
|
|
variable "location" {
|
|
description = "Azure region"
|
|
type = string
|
|
}
|
|
|
|
variable "storage_account_name" {
|
|
description = "Name of the storage account"
|
|
type = string
|
|
}
|
|
|
|
variable "account_tier" {
|
|
description = "Storage account tier (Standard or Premium)"
|
|
type = string
|
|
default = "Standard"
|
|
}
|
|
|
|
variable "account_replication_type" {
|
|
description = "Replication type (LRS, GRS, RAGRS, ZRS)"
|
|
type = string
|
|
default = "LRS"
|
|
}
|
|
|
|
variable "account_kind" {
|
|
description = "Account kind (StorageV2, BlobStorage, etc.)"
|
|
type = string
|
|
default = "StorageV2"
|
|
}
|
|
|
|
variable "enable_https_traffic_only" {
|
|
description = "Enable HTTPS traffic only"
|
|
type = bool
|
|
default = true
|
|
}
|
|
|
|
variable "min_tls_version" {
|
|
description = "Minimum TLS version"
|
|
type = string
|
|
default = "TLS1_2"
|
|
}
|
|
|
|
variable "blob_delete_retention_days" {
|
|
description = "Blob delete retention days"
|
|
type = number
|
|
default = 7
|
|
}
|
|
|
|
variable "container_delete_retention_days" {
|
|
description = "Container delete retention days"
|
|
type = number
|
|
default = 7
|
|
}
|
|
|
|
variable "network_rules" {
|
|
description = "Network rules configuration"
|
|
type = object({
|
|
default_action = string
|
|
bypass = list(string)
|
|
ip_rules = list(string)
|
|
virtual_network_subnet_ids = list(string)
|
|
})
|
|
default = {
|
|
default_action = "Allow"
|
|
bypass = ["AzureServices"]
|
|
ip_rules = []
|
|
virtual_network_subnet_ids = []
|
|
}
|
|
}
|
|
|
|
variable "containers" {
|
|
description = "Map of containers to create"
|
|
type = map(object({
|
|
name = string
|
|
access_type = string
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "file_shares" {
|
|
description = "Map of file shares to create"
|
|
type = map(object({
|
|
name = string
|
|
quota = number
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "queues" {
|
|
description = "Map of queues to create"
|
|
type = map(object({
|
|
name = string
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "tables" {
|
|
description = "Map of tables to create"
|
|
type = map(object({
|
|
name = string
|
|
}))
|
|
default = {}
|
|
}
|
|
|
|
variable "tags" {
|
|
description = "Tags to apply to resources"
|
|
type = map(string)
|
|
default = {}
|
|
}
|
|
|