generated from dxw/terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
107 lines (89 loc) · 3.4 KB
/
variables.tf
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
variable "environment" {
description = "Environment name. Will be used along with `project_name` as a prefix for all resources."
type = string
}
variable "project_name" {
description = "Project name. Will be used along with `environment` as a prefix for all resources."
type = string
}
variable "existing_resource_group" {
description = "Name of an existing Resource Group to create the Key Vault within. If left empty, one will be created."
type = string
default = ""
}
variable "enable_resource_group_lock" {
description = "Enabling this will add a Resource Lock to the Resource Group preventing any resources from being deleted."
type = bool
default = false
}
variable "azure_location" {
description = "Azure location in which to launch resources."
type = string
}
variable "key_vault_access_users" {
description = "List of users that require access to the Key Vault. This should be a list of User Principle Names (Found in Active Directory) that need to run terraform"
type = list(string)
}
variable "key_vault_access_ipv4" {
description = "List of IPv4 Addresses that are permitted to access the Key Vault"
type = list(string)
}
variable "key_vault_access_subnet_ids" {
description = "List of Azure Subnet IDs that are permitted to access the Key Vault"
type = list(string)
default = []
}
variable "key_vault_access_use_rbac_authorization" {
description = "Use RBAC to handle access controls for the Key Vault"
type = bool
default = false
}
variable "tfvars_filename" {
description = "tfvars filename. This file is uploaded and stored encrupted within Key Vault, to ensure that the latest tfvars are stored in a shared place."
type = string
}
variable "secret_expiry_years" {
description = "Number of years from now when the Key Vault secret should be considered expired"
type = number
default = 5
}
variable "enable_tfvars_file_age_check" {
description = "Compares the file age of the tfvars file with the updated time of the Key Vault Secret, and prevents and older tfvars file updating a newer secret."
type = bool
default = true
}
variable "enable_diagnostic_setting" {
description = "Enable Azure Diagnostics setting for the Key Vault"
type = bool
default = true
}
variable "enable_log_analytics_workspace" {
description = "When enabled, creates a Log Analyics Workspace, if one hasn't been specified for `diagnostic_log_analytics_workspace_id`"
type = bool
default = false
}
variable "diagnostic_log_analytics_workspace_id" {
description = "Specify a Log Analytics Workspace ID to send Diagnostic information to"
type = string
default = ""
}
variable "diagnostic_eventhub_name" {
description = "Specify an Event Hub name to send Diagnostic information to"
type = string
default = ""
}
variable "enable_diagnostic_storage_account" {
description = "When enabled, creates a Storage Account for the diagnostic logs, if one hasn't been specified for `diagnostic_storage_account_id`"
type = bool
default = false
}
variable "diagnostic_storage_account_id" {
description = "Specify a Storage Account ID to send Diagnostic information to"
type = string
default = ""
}
variable "tags" {
description = "Tags to be applied to all resources"
type = map(string)
default = {}
}