google_compute_subnetwork

    0

    1

    lucycodes42

    Terraform snippets

    The code configures a Google Compute Subnetwork called "default-us-east1" and assigns it an IP address range of "10.0.0.0/16". Google Compute Subnetwork instances are placed in regions, and this one is designated for use in the "us-east1" region.

    Shortcut: tf_google_compute_subnetwork

    resource "google_compute_subnetwork" "${MyResource}" {
       name          = "default-us-east1"
       ip_cidr_range = "10.0.0.0/16"
       network       = "\${google_compute_network.default.self_link}"
       region        = "us-east1"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.