-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
78 lines (66 loc) · 2.01 KB
/
Copy pathvariables.tf
File metadata and controls
78 lines (66 loc) · 2.01 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
69
70
71
72
73
74
75
76
77
78
variable "server_name" {
description = "Name of the SQL server (must be globally unique)"
type = string
}
variable "database_name" {
description = "Name of the SQL database"
type = string
default = "workshopdb"
}
variable "resource_group_name" {
description = "Name of the resource group"
type = string
default = "se-rg"
}
variable "location" {
description = "Azure region"
type = string
default = "westus2"
}
variable "admin_login" {
description = "Administrator login for the SQL server"
type = string
}
variable "admin_password" {
description = "Administrator password for the SQL server"
type = string
sensitive = true
}
variable "sku_name" {
description = "SKU name for the database (e.g., Basic, S0, S1, GP_S_Gen5_1)"
type = string
default = "Basic"
}
variable "max_size_gb" {
description = "Maximum size of the database in GB"
type = number
default = 2
}
variable "tags" {
description = "Tags to apply to resources"
type = map(string)
default = {}
}
# --- Long-Term Retention (LTR) policy ---
# Default policy retains monthly backups for 13 months to satisfy long-term
# data retention requirements. ISO 8601 duration format (e.g., P13M = 13 months).
variable "ltr_weekly_retention" {
description = "Weekly LTR retention duration in ISO 8601 format (e.g., P1W). Use PT0S to disable."
type = string
default = "PT0S"
}
variable "ltr_monthly_retention" {
description = "Monthly LTR retention duration in ISO 8601 format. Defaults to 13 months (P13M)."
type = string
default = "P13M"
}
variable "ltr_yearly_retention" {
description = "Yearly LTR retention duration in ISO 8601 format (e.g., P5Y). Use PT0S to disable."
type = string
default = "PT0S"
}
variable "ltr_week_of_year" {
description = "Week of the year (1-52) to take the yearly LTR backup. Required when yearly_retention is set; ignored otherwise."
type = number
default = 1
}