generated from Azure/terraform-azurerm-avm-template
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathvariables.tf
More file actions
68 lines (57 loc) · 2.68 KB
/
variables.tf
File metadata and controls
68 lines (57 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
variable "location" {
type = string
description = <<DESCRIPTION
Azure region where all resources should be deployed.
This specifies the primary Azure region for deploying the AI/ML landing zone infrastructure. All resources will be created in this region unless specifically configured otherwise in individual resource definitions.
DESCRIPTION
nullable = false
}
# This is required for most resource modules
variable "resource_group_name" {
type = string
description = <<DESCRIPTION
The name of the resource group where all resources will be deployed.
This resource group will contain all the AI/ML landing zone infrastructure components. The resource group should already exist or will be created as part of the deployment process.
DESCRIPTION
}
variable "enable_telemetry" {
type = bool
default = true
description = <<DESCRIPTION
This variable controls whether or not telemetry is enabled for the module.
For more information see <https://aka.ms/avm/telemetryinfo>.
If it is set to false, then no telemetry will be collected.
DESCRIPTION
nullable = false
}
variable "flag_platform_landing_zone" {
type = bool
default = true
description = <<DESCRIPTION
Flag to indicate if the platform landing zone is enabled.
If set to true, the module will deploy resources and connect to a platform landing zone hub. This enables integration with existing hub-and-spoke network architectures and centralized management services.
DESCRIPTION
}
variable "name_prefix" {
type = string
default = null
description = <<DESCRIPTION
Optional prefix to be used for naming resources.
This prefix will be applied to all resource names generated by the module. It is useful for ensuring consistent naming conventions across deployments without requiring explicit names for each resource. The prefix should be kept under 10 characters and use only alphanumeric lowercase characters to avoid Azure naming limitations.
DESCRIPTION
validation {
condition = var.name_prefix == null || (
length(var.name_prefix) <= 10 &&
can(regex("^[a-z0-9]+$", var.name_prefix))
)
error_message = "The name_prefix must contain only lowercase alphanumeric characters and be 10 characters or less or remain null."
}
}
variable "tags" {
type = map(string)
default = null
description = <<DESCRIPTION
Map of tags to be assigned to all resources created by this module.
Tags are key-value pairs that help organize and manage Azure resources. These tags will be applied to all resources created by the module, enabling consistent resource governance, cost tracking, and operational management across the AI/ML landing zone infrastructure.
DESCRIPTION
}