Difference between revisions of "Terraform resource: google compute instance"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance {{tf GCP}}")
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* <code>[[google_compute_instance]]</code> https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance
  
* https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance
+
resource "google_compute_instance" "ubuntu_instance" {
 +
  name        = "ubuntu-instance"
 +
  machine_type = "[[e2-micro]]"
 +
  zone        = "[[us-west1]]-a"
 +
 +
  boot_disk {
 +
    initialize_params {
 +
      image = "ubuntu-os-cloud/[[ubuntu-2204-lts]]"
 +
    }
 +
  }
 +
 +
  network_interface {
 +
    network = "default"
 +
    access_config {
 +
      // Ephemeral public IP
 +
    }
 +
  }
 +
}
  
 +
== Related ==
 +
* <code>[[machine_type]]</code>
  
 +
== See also ==
 +
* {{google_compute_instance}}
 +
* {{tf GCP}}
  
{{tf GCP}}
+
[[Category:Terraform]]
 +
[[Category:GCP]]

Latest revision as of 14:03, 27 January 2025

Advertising: