File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments