-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
85 lines (66 loc) · 2.75 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
module "gcp-tf-base" {
source = "github.com/cloudymax/modules-gcp-tf-base.git"
organization = var.organization
organization_id = var.organization_id
billing_account = var.billing_account
main_availability_zone = var.main_availability_zone
location = var.location
project_name = var.project_name
project_id = var.project_id
keyring = var.keyring
keyring_key = var.keyring_key
big_robot_group = var.big_robot_group
big_robot_name = var.big_robot_name
big_robot_email = var.big_robot_email
# State bucket
backend_bucket_name = var.backend_bucket_name
bucket_path_prefix = var.bucket_path_prefix
}
module "gcp-tf-vm" {
source = "github.com/cloudymax/modules-gcp-tf-vm.git"
project_id = var.project_id
location = var.location
main_availability_zone = var.main_availability_zone
big_robot_email = var.big_robot_email
machine_type = var.machine_type
guest_accelerator = var.guest_accelerator
guest_accelerator_count = var.guest_accelerator_count
provisioning_model = "SPOT"
instance_termination_action = "STOP"
os_image = var.os_image
disk_type = var.disk_type
disk_size = var.disk_size
userdata = var.userdata
}
/*
module "modules-gcp-gke" {
source = "github.com/cloudymax/modules-gcp-gke.git"
cluster_name = var.cluster_name
use_default_node_pool = var.use_default_node_pool
initial_node_count = var.initial_node_count
disk_type = var.disk_type
disk_size = var.disk_size
machine_type = var.machine_type
guest_accelerator = var.guest_accelerator
guest_accelerator_count = var.guest_accelerator_count
autoscaling_enabled = var.autoscaling_enabled
autoscaling_min_nodes = var.autoscaling_min_nodes
autoscaling_max_nodes = var.autoscaling_max_nodes
autoscaling_strategy = var.autoscaling_strategy
node_service_account = var.big_robot_email
#autoscaling_max_mem = var.autoscaling_max_mem
#autoscaling_min_mem = var.autoscaling_min_mem
#autoscaling_min_cpu = var.autoscaling_min_cpu
#autoscaling_max_cpu = var.autoscaling_max_cpu
#container_name = var.container_name
#container_image = var.container_image
#replicas = 1
region = var.location
main_availability_zone = var.main_availability_zone
state_path = var.backend_bucket_name
state_bucket_name = var.bucket_path_prefix
project_id = var.project_id
vpc_network_name = module.gcp-tf-base.network_name
vpc_network_subnet_name = module.gcp-tf-base.subnet_name
}
*/