-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
27 lines (25 loc) · 806 Bytes
/
Copy pathmain.tf
File metadata and controls
27 lines (25 loc) · 806 Bytes
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
provider "google" {
project = var.project_id
region = var.region
zone = var.zone
}
module "network" {
source = "./modules/network"
project_id = var.project_id
region = var.region
network_name = var.network_name
subnetwork_cidr = var.subnetwork_cidr
network_tags = var.network_tags
firewall_sources = var.firewall_sources
}
module "compute" {
source = "./modules/compute"
project_id = var.project_id
region = var.region
zone = var.zone
instance_name = var.instance_name
machine_type = var.machine_type
network_self_link = module.network.network_self_link
subnetwork_self_link = module.network.subnetwork_self_link
network_tags = var.network_tags
}