-
Notifications
You must be signed in to change notification settings - Fork 0
/
vms.tf
55 lines (44 loc) · 1.35 KB
/
vms.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
module "oracle_prod" {
# do not increase, otherwise it will cost money!
# do not reduce, otherwise you will loose data!
count = var.enable_oracle_prod ? 1 : 0
source = "./modules/oracle_composed/free_arm_vm"
providers = {
oci = oci.prod
}
name = "free-${count.index}"
tenant_id = jsondecode(data.config_ini.cfg_oracle_prod.json)["tenancy"]
ports = []
}
module "oracle_beta" {
# do not increase, otherwise it will cost money!
# do not reduce, otherwise you will loose data!
count = var.enable_oracle_beta ? 1 : 0
source = "./modules/oracle_composed/free_arm_vm"
providers = {
oci = oci.beta
}
name = "beta-${count.index}"
tenant_id = jsondecode(data.config_ini.cfg_oracle_beta.json)["tenancy"]
ports = []
}
module "hetzner" {
count = var.enable_hetzner ? 1 : 0
source = "./modules/hetzner_composed/vm"
name = "instance-${count.index}"
server_type = "cax11"
location = "fsn1"
image = "ubuntu-22.04"
}
module "equinix" {
count = var.enable_equinix ? 1 : 0
source = "./modules/equinix_composed/testing_env"
name = "instance-${count.index}"
org_name = "tibeer"
}
module "google" {
count = var.enable_google ? 1 : 0
source = "./modules/google_composed/free_vm"
name = "instance-${count.index}"
public_ptr_domain_name = "google.${var.dns_zone}"
}