-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
47 lines (39 loc) · 1.01 KB
/
main.tf
File metadata and controls
47 lines (39 loc) · 1.01 KB
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
# ============================================================================
# infra/envs/prod/main.tf
# ============================================================================
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~> 5.0"
}
}
}
provider "google" {
project = var.project_id
region = var.region
}
module "network" {
source = "../../modules/network"
network_name = "heapdog-prod-vpc"
region = var.region
subnet_cidr = "10.0.2.0/24"
}
module "heapdog_prod_instance" {
source = "../../modules/compute"
instance_name = "heapdog-prod"
machine_type = "e2-standard-4"
zone = var.zone
region = var.region
disk_size_gb = 30
network_self_link = module.network.network_self_link
subnet_self_link = module.network.subnet_self_link
}
module "storage" {
source = "../../modules/storage"
bucket_name = var.bucket_name
tags = {
Environment = "prod"
Project = "heapdog"
}
}