Skip to content

Commit 0b39fb5

Browse files
authored
+ variables.tf
1 parent b7b5b46 commit 0b39fb5

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# variables.tf
2+
# This file defines the input variables used in the Terraform configuration.
3+
# Each variable includes a description and type.
4+
5+
variable "subscription_id" {
6+
description = "The Azure subscription ID"
7+
type = string
8+
}
9+
10+
variable "resource_group_name" {
11+
description = "The name of the resource group"
12+
type = string
13+
}
14+
15+
variable "location" {
16+
description = "The Azure region to deploy resources"
17+
type = string
18+
}
19+
20+
variable "load_balancer_name" {
21+
description = "The name of the load balancer"
22+
type = string
23+
}
24+
25+
variable "public_ip_name" {
26+
description = "The name of the public IP address"
27+
type = string
28+
}
29+
30+
variable "frontend_ip_configuration_name" {
31+
description = "Name of the frontend IP configuration"
32+
type = string
33+
default = "frontend-ip-config"
34+
}
35+
36+
variable "backend_pool_name" {
37+
description = "Name of the backend address pool"
38+
type = string
39+
default = "backend-pool"
40+
}
41+
42+
variable "health_probe_name" {
43+
description = "Name of the health probe"
44+
type = string
45+
default = "health-probe"
46+
}
47+
48+
variable "lb_rule_name" {
49+
description = "Name of the load balancer rule"
50+
type = string
51+
default = "lb-rule"
52+
}
53+
54+
variable "lb_sku" {
55+
description = "SKU of the load balancer (Basic or Standard)"
56+
type = string
57+
default = "Standard"
58+
}
59+
60+
variable "probe_protocol" {
61+
description = "Protocol for health probe"
62+
type = string
63+
default = "Tcp"
64+
}
65+
66+
variable "probe_port" {
67+
description = "Port for health probe"
68+
type = number
69+
default = 80
70+
}
71+
72+
variable "frontend_port" {
73+
description = "Frontend port for load balancer rule"
74+
type = number
75+
default = 80
76+
}
77+
78+
variable "backend_port" {
79+
description = "Backend port for load balancer rule"
80+
type = number
81+
default = 80
82+
}
83+
84+
variable "tags" {
85+
description = "Tags to apply to all resources"
86+
type = map(string)
87+
default = {}
88+
}

0 commit comments

Comments
 (0)