-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
41 lines (36 loc) · 1.09 KB
/
main.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
provider "arvan" {
api_key = var.ApiKey
}
module "server-rocky" {
source = "./modules/server-rocky"
region = var.region
ApiKey = var.ApiKey
key_name = arvan_iaas_sshkey.ssh-key-user-terraform.name
server-count = var.server-count-rocky
}
module "server-ubuntu" {
source = "./modules/server-ubuntu"
region = var.region
ApiKey = var.ApiKey
key_name = arvan_iaas_sshkey.ssh-key-user-terraform.name
server-count = var.server-count-ubuntu
}
module "server-debian" {
source = "./modules/server-debian"
region = var.region
ApiKey = var.ApiKey
key_name = arvan_iaas_sshkey.ssh-key-user-terraform.name
server-count = var.server-count-debian
}
module "server-centos" {
source = "./modules/server-centos"
region = var.region
ApiKey = var.ApiKey
key_name = arvan_iaas_sshkey.ssh-key-user-terraform.name
server-count = var.server-count-centos
}
resource "arvan_iaas_sshkey" "ssh-key-user-terraform" {
region = var.region
name = "ssh-key-user-terraform"
public_key = var.public-key
}