-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
59 lines (50 loc) · 1.59 KB
/
Copy pathvariables.tf
File metadata and controls
59 lines (50 loc) · 1.59 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
# Variables for Azure Resource Group
variable "resource_group_name" {
description = "Name of the Azure Resource Group"
type = string
default = "rg-idp-dev"
}
variable "location" {
description = "Azure region for the Resource Group"
type = string
default = "West Europe"
}
variable "environment" {
description = "Environment tag for resources"
type = string
default = "dev"
validation {
condition = contains(["dev", "staging", "prod"], var.environment)
error_message = "Environment must be one of: dev, staging, prod."
}
}
variable "project_name" {
description = "Project name for tagging and naming resources"
type = string
default = "identity-platform"
}
# Variables for GitHub Repository
variable "github_repo_name" {
description = "Name of the GitHub repository"
type = string
default = "idp-infrastructure"
}
variable "github_repo_description" {
description = "Description of the GitHub repository"
type = string
default = "Identity Platform Infrastructure and Configuration"
}
variable "github_repo_visibility" {
description = "Visibility of the GitHub repository"
type = string
default = "private"
validation {
condition = contains(["public", "private"], var.github_repo_visibility)
error_message = "Repository visibility must be either 'public' or 'private'."
}
}
variable "github_repo_topics" {
description = "Topics/tags for the GitHub repository"
type = list(string)
default = ["terraform", "opentofu", "azure", "infrastructure", "iac"]
}