generated from kwame-mintah/terraform-azurerm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
119 lines (82 loc) · 2.26 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
108
109
110
111
112
113
114
115
116
117
118
119
variable "arm_client_id" {
description = <<-EOF
The Client ID which should be used. This can also be sourced
from the ARM_CLIENT_ID Environment Variable.
EOF
type = string
}
variable "arm_client_secret" {
description = <<-EOF
The Client Secret which should be used. This can also be sourced
from the ARM_CLIENT_SECRET Environment Variable.
EOF
type = string
}
variable "arm_tenant_id" {
description = <<-EOF
The Tenant ID which should be used. This can also be sourced
from the ARM_TENANT_ID Environment Variable.
EOF
type = string
}
variable "arm_subscription_id" {
description = <<-EOF
The Subscription ID which should be used. This can also be sourced
from the ARM_SUBSCRIPTION_ID Environment Variable.
EOF
type = string
}
variable "cloud_enviornment" {
description = <<-EOF
The Cloud Environment which should be used. Possible values are public,
`usgovernment`, `german`, and `china`. Defaults to `public`. This can also be
sourced from the ARM_ENVIRONMENT Environment Variable.
EOF
type = string
default = "public"
}
variable "create_tfstate_store" {
description = <<-EOF
Create a storage account to remotely store tfstate for the project. **NOTE**: requires
local `.tfstate` to be migrated to remote, after storeage account has been created.
EOF
type = bool
default = false
}
variable "environment" {
description = <<-EOF
The name of the _environment_ to help identify resources.
EOF
type = string
}
variable "env_prefix" {
description = <<-EOF
The prefix added to resources in the environment.
EOF
type = string
validation {
condition = contains(["dev", "staging", "prod", "sandbox"], var.env_prefix)
error_message = "The env_prefix value must be either: dev, staging, prod or sandbox."
}
}
variable "location" {
description = <<-EOF
The Azure Region where the Resource Group should exist.
Changing this forces a new Resource Group to be created.
EOF
type = string
default = "West Europe"
}
variable "tags" {
description = <<-EOF
Tags to be added to resources created.
EOF
type = map(string)
default = {}
}
variable "personal_ip_address" {
description = <<-EOF
Add your client IP address to the storage account
EOF
type = string
}