Terraform snippets

    The code defines a forwarding rule for an instance that uses Google's public DNS servers for its target. The rule sets the target to the instance's self-link, which is the URL used by the instance to identify itself to Google. The rule sets the port range to 80.

    Shortcut: tf_google_compute_global_forwarding_rule

    resource "google_compute_global_forwarding_rule" "${MyResource}" {
       name = "example-name"
       target = "\${google_compute_target_http_proxy.default.self_link}"
       port_range = "80"
    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.