google_compute_instance

    0

    3

    lucycodes42

    Terraform snippets

    This code creates a Google Compute Engine instance named "example-name" that is of type "n1-standard-1" and is located in the "us-central1-a" zone. The instance has a Debian 8 image on its disks.

    Shortcut: tf_google_compute_instance

    resource "google_compute_instance" "${MyResource}" {
       name = "example-name"
       machine_type = "n1-standard-1"
       zone = "us-central1-a"
       disk { image = "debian-cloud/debian-8" }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.