google_gke_hub_scope_rbac_role_binding

RBACRoleBinding represents a rbacrolebinding across the Fleet.

To get more information about ScopeRBACRoleBinding, see:

Example Usage - Gkehub Scope Rbac Role Binding Basic

resource "google_gke_hub_scope" "scope" {
  scope_id = "tf-test-scope%{random_suffix}"
}

resource "google_gke_hub_scope_rbac_role_binding" "scope_rbac_role_binding" {
  scope_rbac_role_binding_id = "tf-test-scope-rbac-role-binding%{random_suffix}"
  scope_id = google_gke_hub_scope.scope.scope_id
  user = "test-email@gmail.com"
  role {
    predefined_role = "ADMIN"
  }
  labels = {
      key = "value" 
  }
  depends_on = [google_gke_hub_scope.scope]
}

Argument Reference

The following arguments are supported:

The role block supports:


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

ScopeRBACRoleBinding can be imported using any of these accepted formats:

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

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

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

$ terraform import google_gke_hub_scope_rbac_role_binding.default projects/{{project}}/locations/global/scopes/{{scope_id}}/rbacrolebindings/{{scope_rbac_role_binding_id}}
$ terraform import google_gke_hub_scope_rbac_role_binding.default {{project}}/{{scope_id}}/{{scope_rbac_role_binding_id}}
$ terraform import google_gke_hub_scope_rbac_role_binding.default {{scope_id}}/{{scope_rbac_role_binding_id}}

User Project Overrides

This resource supports User Project Overrides.