Files

1.3 KiB

page_title, subcategory, description
page_title subcategory description
kms_group Resource - terraform-provider Groups Create groups & save to Hanzo KMS. Only Machine Identity authentication is supported for this resource

kms_group (Resource)

Create groups & save to Hanzo KMS. Only Machine Identity authentication is supported for this resource

Example Usage

terraform {
  required_providers {
    kms = {
      # version = <latest version>
      source = "hanzokms/kms"
    }
  }
}

provider "kms" {
  host = "https://kms.hanzo.ai" # Only required if using self hosted instance of Hanzo KMS, default is https://kms.hanzo.ai
  auth = {
    universal = {
      client_id     = "<machine-identity-client-id>"
      client_secret = "<machine-identity-client-secret>"
    }
  }
}

resource "kms_group" "test-group" {
  name = "my-test-name"
  slug = "my-test-slug"
  role = "member"
}

Schema

Required

  • name (String) The name of the group.
  • role (String) The role of the group.
  • slug (String) The slug of the group.

Read-Only

  • id (String) The id of the group.

Import

Import is supported using the following syntax:

# This will import the resource by its group ID
terraform import kms_group.example <group_id>