Skip to content

Latest commit

 

History

History
118 lines (81 loc) · 3.93 KB

File metadata and controls

118 lines (81 loc) · 3.93 KB
page_title subcategory description
meshstack_tenant_v4 Resource - terraform-provider-meshstack
Manages a meshTenant with API version 4. ~> Note: This resource is in preview and may change in the near future.

meshstack_tenant_v4 (Resource)

Manages a meshTenant with API version 4.

~> Note: This resource is in preview and may change in the near future.

Example Usage

data "meshstack_project" "example" {
  metadata = {
    name               = "my-project-identifier"
    owned_by_workspace = "my-workspace-identifier"
  }
}

resource "meshstack_tenant_v4" "example" {
  metadata = {
    owned_by_workspace = data.meshstack_project.example.metadata.owned_by_workspace
    owned_by_project   = data.meshstack_project.example.metadata.name
  }

  spec = {
    platform_identifier     = "my-platform-identifier"
    landing_zone_identifier = "platform-landing-zone-identifier"
  }
}

Schema

Required

Read-Only

  • api_version (String) API version of the tenant resource.
  • kind (String) The kind of the meshObject, always meshTenant.
  • status (Attributes) Tenant status. (see below for nested schema)

Nested Schema for metadata

Required:

  • owned_by_project (String) The identifier of the project that the tenant belongs to.
  • owned_by_workspace (String) The identifier of the workspace that the tenant belongs to.

Read-Only:

  • created_on (String) The creation timestamp of the meshTenant (e.g. 2020-12-22T09:37:43Z).
  • deleted_on (String) The deletion timestamp of the tenant (e.g. 2020-12-22T09:37:43Z).
  • marked_for_deletion_on (String) The timestamp when the tenant was marked for deletion (e.g. 2020-12-22T09:37:43Z).
  • uuid (String) The unique identifier (UUID) of the tenant.

Nested Schema for spec

Required:

  • platform_identifier (String) Identifier of the target platform.

Optional:

  • landing_zone_identifier (String) The identifier of the landing zone to assign to this tenant.
  • platform_tenant_id (String) The identifier of the tenant on the platform (e.g. GCP project ID or Azure subscription ID). If this is not set, a new tenant will be created. If this is set, an existing tenant will be imported. Otherwise, this field will be empty until a successful replication has run.
  • quotas (Attributes Set) Landing zone quota settings will be applied by default but can be changed here. (see below for nested schema)

Nested Schema for spec.quotas

Required:

  • key (String)
  • value (Number)

Nested Schema for status

Read-Only:

  • platform_type_identifier (String) Identifier of the platform type.
  • platform_workspace_identifier (String) Some platforms create representations of workspaces, in such cases this will contain the identifier of the workspace on the platform.
  • quotas (Attributes Set) The effective quotas applied to the tenant. (see below for nested schema)
  • tags (Map of List of String) Tags assigned to this tenant.
  • tenant_name (String) The full tenant name, a concatenation of the workspace identifier, project identifier and platform identifier.

Nested Schema for status.quotas

Read-Only:

  • key (String)
  • value (Number)

Import

Import is supported using the following syntax:

# import via uuid
terraform import 'meshstack_tenant_v4.example' '00000000-0000-0000-0000-000000000000'