-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathvariables-network.tf
28 lines (24 loc) · 990 Bytes
/
variables-network.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
variable "public_network_access_enabled" {
description = "Whether the Azure Redis Cache is available from public network."
type = bool
default = false
}
variable "allowed_cidrs" {
description = "List of allowed CIDR ranges to access the Azure Redis Cache resource."
type = any
default = []
validation {
condition = can(tomap(var.allowed_cidrs)) || can(tolist(var.allowed_cidrs))
error_message = "The `allowed_cidrs` argument must either be list(string) or map(string) of CIDRs."
}
}
variable "subnet_id" {
description = "The ID of the Subnet within which the Redis Cache should be deployed. Changing this forces a new resource to be created."
type = string
default = null
}
variable "private_static_ip_address" {
description = "The Static IP Address to assign to the Redis Cache when hosted inside the Virtual Network. Changing this forces a new resource to be created."
type = string
default = null
}