Skip to content

Commit 3633430

Browse files
Create infracost_test.tf
1 parent 93ac355 commit 3633430

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

infracost_test.tf

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
provider "google" {
2+
region = "us-central1"
3+
project = "test"
4+
}
5+
6+
resource "google_compute_instance" "my_instance" {
7+
zone = "us-central1-a"
8+
name = "test"
9+
10+
machine_type = "n1-standard-16" # <<<<<<<<<< Try changing this to n1-standard-32 to compare the costs
11+
network_interface {
12+
network = "default"
13+
access_config {}
14+
}
15+
16+
boot_disk {
17+
initialize_params {
18+
image = "debian-cloud/debian-9"
19+
}
20+
}
21+
22+
scheduling {
23+
preemptible = true
24+
}
25+
26+
guest_accelerator {
27+
type = "nvidia-tesla-t4" # <<<<<<<<<< Try changing this to nvidia-tesla-p4 to compare the costs
28+
count = 4
29+
}
30+
31+
labels = {
32+
environment = "production"
33+
service = "web-app"
34+
}
35+
}
36+
37+
resource "google_cloudfunctions_function" "my_function" {
38+
runtime = "nodejs20"
39+
name = "test"
40+
available_memory_mb = 512
41+
42+
labels = {
43+
environment = "Prod"
44+
}
45+
}

0 commit comments

Comments
 (0)