-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathprovider.tf
More file actions
31 lines (30 loc) · 793 Bytes
/
provider.tf
File metadata and controls
31 lines (30 loc) · 793 Bytes
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
locals {
ibm_powervs_zone_region_map = {
"syd04" = "syd"
"syd05" = "syd"
"sao01" = "sao"
"sao04" = "sao"
"tor01" = "tor"
"mon01" = "mon"
"eu-de-1" = "eu-de"
"eu-de-2" = "eu-de"
"mad02" = "mad"
"mad04" = "mad"
"lon04" = "lon"
"lon06" = "lon"
"osa21" = "osa"
"tok04" = "tok"
"us-south" = "us-south"
"dal10" = "us-south"
"dal12" = "us-south"
"dal14" = "us-south"
"us-east" = "us-east"
"wdc06" = "us-east"
"wdc07" = "us-east"
}
}
provider "ibm" {
region = lookup(local.ibm_powervs_zone_region_map, var.powervs_zone, null)
zone = var.powervs_zone
ibmcloud_api_key = var.ibmcloud_api_key != null ? var.ibmcloud_api_key : null
}