We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cd925 commit 6eb2655Copy full SHA for 6eb2655
terraform/gcp/disk.tf
@@ -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
@@ -0,0 +1,20 @@
+provider "google" {
+ credentials = file("/Users/nareshwar/tcode/gcp-cred.json")
+ project = "publ-365609"
+ region = "us-central1"
+ zone = "us-central1-c"
+
+resource "google_compute_instance" "dev" {
+ count = 1
+ 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