Google Compute Engine Project Default Network Tier

This page shows how to write Terraform for Compute Engine Project Default Network Tier and write them securely.

code-icon

Fix issues in your cloud & app configurations

Test for misconfigurations of this resource in your cloud.

get-started-button

Terraform Example (google_compute_project_default_network_tier)

Configures the Google Compute Engine Default Network Tier for a project. For more information, see, the Project API documentation.

Parameters

  • id optionalcomputed - string
  • network_tier required - string
    • The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.

  • project optionalcomputed - string
    • The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Example Usage (from GitHub)

github-iconde-py/Terraform-Ansible-Demo
resource "google_compute_project_default_network_tier" "default" {
  network_tier = "STANDARD"
github-iconmmcloughlin/goperf
resource "google_compute_project_default_network_tier" "default" {
  network_tier = var.network_tier
}

data "google_compute_network" "default" {
  name = "default"
github-iconDaniloBNascimento/gcp-foundation-tf
resource "google_compute_project_default_network_tier" "default" {
    network_tier            = "PREMIUM"
github-iconopentargets/terraform-google-genetics-portal
resource "google_compute_project_default_network_tier" "default_network_tier" {
  network_tier = "PREMIUM"
  project      = var.config_project_id
}
github-icondandevops94/airflow-on-kube
resource "google_compute_project_default_network_tier" "default" {
    network_tier            = "PREMIUM"

Frequently asked questions

What is Google Compute Engine Project Default Network Tier?

Google Compute Engine Project Default Network Tier is a resource for Compute Engine of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Compute Engine Project Default Network Tier?

For Terraform, the de-py/Terraform-Ansible-Demo, mmcloughlin/goperf and DaniloBNascimento/gcp-foundation-tf source code examples are useful. See the Terraform Example section for further details.