-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
59 lines (59 loc) · 1.67 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
###########################
# Common vars
###########################
variable "environment" {
description = "Variable that defines the name of the environment."
type = string
default = "dev"
}
variable "default_tags" {
description = "A mapping of tags to assign to the resource."
type = map(any)
default = {
"ManagedByTerraform" = "True"
}
}
variable "region" {
description = "Region in which resources are deployed."
type = string
default = "weu"
}
###########################
# Resource groups vars
###########################
variable "resource_group_location" {
description = "The location/region where the virtual network is created. Changing this forces a new resource to be created."
default = "West Europe"
type = string
}
variable "resource_group_name" {
description = "The name of the resource group in which to create the virtual network."
type = string
}
############################
#VNET&SUBNET variable
############################
variable "vnet_name" {
description = "The name of the virtual network. Changing this forces a new resource to be created."
type = string
default = "VirtualNetwork1"
}
variable "vnet_address_space" {
description = "The address space that is used the virtual network. You can supply more than one address space."
type = string
default = "10.0.0.0/16"
}
variable "subnet_prefix" {
description = "The address prefix and name to use for the subnet."
type = map(any)
default = {
subnet_1 = {
ip = ["10.0.1.0/24"]
name = "Subnet_1"
}
subnet_2 = {
ip = ["10.0.2.0/24"]
name = "Subnet_2"
}
}
}