Skip to content

Commit 6eb2655

Browse files
committed
tcode
1 parent 19cd925 commit 6eb2655

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

terraform/gcp/disk.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resource "google_compute_disk" "default" {
2+
name = "test-disk1"
3+
type = "pd-ssd"
4+
size = "20"
5+
zone = "us-central1-a"
6+
labels = {
7+
environment = "dev"
8+
}
9+
physical_block_size_bytes = 4096
10+
}

terraform/gcp/vm.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
provider "google" {
2+
credentials = file("/Users/nareshwar/tcode/gcp-cred.json")
3+
project = "publ-365609"
4+
region = "us-central1"
5+
zone = "us-central1-c"
6+
}
7+
8+
resource "google_compute_instance" "dev" {
9+
count = 1
10+
name = "test-${count.index}"
11+
machine_type = "e2-micro"
12+
boot_disk {
13+
initialize_params {
14+
image = "ubuntu-2004-focal-v20221213"
15+
}
16+
}
17+
network_interface {
18+
network = "default"
19+
}
20+
}

0 commit comments

Comments
 (0)