-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
125 lines (97 loc) · 2.32 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.48"
}
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.39"
}
google = {
source = "hashicorp/google"
version = "~> 4.48"
}
}
required_version = ">= 1.3.0"
}
module "aws_eu_central_1" {
source = "./modules/aws-eu-central-1"
public_ssh_key = var.public_ssh_key
providers = {
aws = aws.aws-eu-central-1
}
}
module "aws_eu_west_1" {
source = "./modules/aws-eu-west-1"
public_ssh_key = var.public_ssh_key
k3s_leader_endpoint = module.aws_eu_central_1.public_ip
providers = {
aws = aws.aws-eu-west-1
}
depends_on = [
module.aws_eu_central_1
]
}
module "aws_us_east_1" {
source = "./modules/aws-us-east-1"
public_ssh_key = var.public_ssh_key
k3s_leader_endpoint = module.aws_eu_central_1.public_ip
providers = {
aws = aws.aws-us-east-1
}
depends_on = [
module.aws_eu_central_1
]
}
module "aws_us_west_2" {
source = "./modules/aws-us-west-2"
public_ssh_key = var.public_ssh_key
k3s_leader_endpoint = module.aws_eu_central_1.public_ip
providers = {
aws = aws.aws-us-west-2
}
depends_on = [
module.aws_eu_central_1
]
}
module "az_japaneast" {
source = "./modules/az-japaneast"
public_ssh_key = var.public_ssh_key
k3s_leader_endpoint = module.aws_eu_central_1.public_ip
depends_on = [
module.aws_eu_central_1
]
}
module "az_norwayeast" {
source = "./modules/az-norwayeast"
public_ssh_key = var.public_ssh_key
k3s_leader_endpoint = module.aws_eu_central_1.public_ip
depends_on = [
module.aws_eu_central_1
]
}
# module "gcp_eu_central1" {
# source = "./modules/gcp-us-central1"
# public_ssh_key = var.public_ssh_key
# project = var.project
# k3s_leader_endpoint = module.aws_eu_central_1.public_ip
# providers = {
# google = google.gcp-eu-central1
# }
# depends_on = [
# module.aws_eu_central_1
# ]
# }
module "gcp_us_central1" {
source = "./modules/gcp-us-central1"
public_ssh_key = var.public_ssh_key
project = var.project
k3s_leader_endpoint = module.aws_eu_central_1.public_ip
providers = {
google = google.gcp-us-central1
}
depends_on = [
module.aws_eu_central_1
]
}