-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
108 lines (93 loc) · 3.09 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
variable "pvs_zone" {
description = "IBM Cloud PVS Zone. Valid values: sao01,osa21,tor01,us-south,dal12,us-east,tok04,lon04,lon06,eu-de-1,eu-de-2,syd04,syd05"
type = string
}
variable "pvs_resource_group_name" {
description = "Existing Resource Group Name"
type = string
}
variable "prefix" {
description = "Prefix for resources which will be created."
type = string
}
variable "pvs_public_key" {
description = "PowerVS SSH Public key data"
type = string
}
variable "pvs_management_network" {
description = "PowerVS Management Subnet name and cidr which will be created."
type = map
default = {
"name" = "mgmt_net"
"cidr" = "10.51.0.0/24"
}
}
variable "pvs_backup_network" {
description = "PowerVS Backup Network name and cidr which will be created."
type = map
default = {
"name" = "bkp_net"
"cidr" = "10.52.0.0/24"
}
}
variable "cloud_connection_reuse" {
description = "Use existing Cloud connection to attach PVS subnets"
type = bool
default = false
}
variable "transit_gw_name" {
description = "Name of the existing transit gateway. Required only if new cloud connections are created."
type = string
}
#####################################################
# Optional Parameters
#####################################################
variable "cloud_connection_count" {
description = "Required number of Cloud connections. Ignore when Reusing. Maximum is 2 per location"
type = string
default = "2"
}
variable "cloud_connection_speed" {
description = "Speed in megabits per sec. Supported values are 50, 100, 200, 500, 1000, 2000, 5000, 10000. Required when creating new connection"
type = string
default = "5000"
}
variable "pvs_tags" {
description = "List of Tag names for PowerVS service"
type = list(string)
default = null
}
variable "cloud_connection_gr" {
description = "Enable global routing for this cloud connection.Can be specified when creating new connection"
type = bool
default = true
}
variable "cloud_connection_metered" {
description = "Enable metered for this cloud connection. Can be specified when creating new connection"
type = bool
default = false
}
variable "ibmcloud_api_key" {
description = "IBM Cloud Api Key"
type = string
default = null
}
variable "ibm_pvs_zone_region_map" {
description = "Map of IBM Power VS zone to the region of PowerVS Infrastructure"
type = map
default = {
"syd04" = "syd"
"syd05" = "syd"
"eu-de-1" = "eu-de"
"eu-de-2" = "eu-de"
"lon04" = "lon"
"lon06" = "lon"
"tok04" = "tok"
"us-east" = "us-east"
"us-south" = "us-south"
"dal12" = "us-south"
"tor01" = "tor"
"osa21" = "osa"
"sao01" = "sao"
}
}