-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
48 lines (39 loc) · 1.53 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
terraform {
required_providers {
google = {
source = "hashicorp/google"
}
}
}
module "aviatrix-controller-network" {
source = "./modules/aviatrix-controller-network"
network_name = var.network_name
subnet_name = var.subnet_name
subnet_cidr = var.subnet_cidr
}
module "aviatrix-controller-ip-address" {
source = "./modules/aviatrix-controller-ip-address"
}
module "aviatrix-controller-build" {
source = "./modules/aviatrix-controller-build"
network = module.aviatrix-controller-network.network
subnetwork = module.aviatrix-controller-network.subnetwork
public_ip = module.aviatrix-controller-ip-address.public_ip
incoming_ssl_cidrs = var.incoming_ssl_cidrs
controller_name = var.controller_name
service_account_email = var.service_account_email
service_account_scopes = var.service_account_scopes
controller_machine_type = var.controller_machine_type
}
module "aviatrix-controller-initialize" {
source = "./modules/aviatrix-controller-initialize"
access_account_name = var.access_account_name
aviatrix_customer_id = var.aviatrix_customer_id
avx_controller_admin_email = var.aviatrix_controller_admin_email
avx_controller_admin_password = var.aviatrix_controller_admin_password
avx_controller_private_ip = module.aviatrix-controller-build.private_ip
avx_controller_public_ip = module.aviatrix-controller-build.public_ip
gcloud_project_credentials_filepath = var.gcloud_project_credentials_filepath
controller_version = var.controller_version
depends_on = [module.aviatrix-controller-build]
}