google_gke_hub_scope

Scope represents a Scope in a Fleet.

To get more information about Scope, see:

Example Usage - Gkehub Scope Basic

resource "google_gke_hub_scope" "scope" {
  scope_id = "my-scope"
  namespace_labels = {
      keyb = "valueb"
      keya = "valuea"
      keyc = "valuec" 
  }
  labels = {
      keyb = "valueb"
      keya = "valuea"
      keyc = "valuec" 
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

The state block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Scope can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Scope using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/global/scopes/{{scope_id}}"
  to = google_gke_hub_scope.default
}

When using the terraform import command, Scope can be imported using one of the formats above. For example:

$ terraform import google_gke_hub_scope.default projects/{{project}}/locations/global/scopes/{{scope_id}}
$ terraform import google_gke_hub_scope.default {{project}}/{{scope_id}}
$ terraform import google_gke_hub_scope.default {{scope_id}}

User Project Overrides

This resource supports User Project Overrides.